Click here to Skip to main content
15,902,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unicode...? Pin
alex.barylski29-Oct-02 11:28
alex.barylski29-Oct-02 11:28 
Questionhow to resize the custom view class? Pin
Anonymous28-Oct-02 22:31
Anonymous28-Oct-02 22:31 
GeneralVariable / fixed width font issues Pin
alex.barylski28-Oct-02 22:28
alex.barylski28-Oct-02 22:28 
Generalfetching printer information in mfc Pin
Anonymous28-Oct-02 21:57
Anonymous28-Oct-02 21:57 
QuestionWhy gethostbyaddr() doesn't work for dial-up client? Pin
Wenrich28-Oct-02 21:33
Wenrich28-Oct-02 21:33 
AnswerRe: Why gethostbyaddr() doesn't work for dial-up client? Pin
Anonymous29-Oct-02 0:59
Anonymous29-Oct-02 0:59 
AnswerRe: Why gethostbyaddr() doesn't work for dial-up client? Pin
ian mariano29-Oct-02 1:38
ian mariano29-Oct-02 1:38 
GeneralEdit control question Pin
alex.barylski28-Oct-02 20:43
alex.barylski28-Oct-02 20:43 
I have for the last few hours hacked endlessly at the CEdit control...i'v subclassed the control in question and tried overriding it's message handling switch code with my own and I still can't quite get it do do things that I want without serious overhaul...

Syntax hilighting, line numbers and such...

Anyways my quesiton is this...I need a editor to work on relativley small files...all web based langs like PHP,ASP,HTML,XML,JScript all of which I always try and make smaller than 64K in size (including comments) I find it's hard for me to keep organized when files grow larger than this anyways...

Sorry I went off topic there a bit...

My question: ( I already am familiar with the classes available on CP )

Because I wanna make the assumption no more memory than 64K
or I guess 65535(FFFF) bytes will ever be needed would it be acceptable for me to do the following for memory allocation...? Sure it wastes memory sometimes, but I don't think it'll get fragmented because it's prolly all allocated in one linear array of bytes...

char m_arrBytes[0xFFFF];

I would prefer to use this instead of new/delete or malloc and similar c functions...

No need to ever worry about leaks...no fragmentation...

I'm just wondering if I maybe missed something...other than extensibility...remember i'm very confident that FFFF bytes is enough for all web based project files. Besides it would force good programming practice (IMO) keeping your files small Smile | :) Smile | :)

Opinions...???

despite the fact i'm prety dead set on using this approach...perhaps you can change my mind if you bring something to my attention I didn't already know..

Then I would really appreciate your help... Big Grin | :-D

Thanx!

"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
GeneralRe: Edit control question Pin
Anonymous29-Oct-02 0:57
Anonymous29-Oct-02 0:57 
GeneralRe: Edit control question Pin
alex.barylski29-Oct-02 11:34
alex.barylski29-Oct-02 11:34 
QuestionHow to copy data within first text file to second text file (use CStdioFile) Pin
ooosawaddee328-Oct-02 18:23
ooosawaddee328-Oct-02 18:23 
AnswerRe: How to copy data within first text file to second text file (use CStdioFile) Pin
Christian Graus28-Oct-02 18:36
protectorChristian Graus28-Oct-02 18:36 
GeneralRe: How to copy data within first text file to second text file (use CStdioFile) Pin
ooosawaddee328-Oct-02 19:02
ooosawaddee328-Oct-02 19:02 
GeneralRe: How to copy data within first text file to second text file (use CStdioFile) Pin
Christian Graus28-Oct-02 19:20
protectorChristian Graus28-Oct-02 19:20 
GeneralRe: How to copy data within first text file to second text file (use CStdioFile) Pin
Joaquín M López Muñoz28-Oct-02 20:31
Joaquín M López Muñoz28-Oct-02 20:31 
GeneralCFormView and CTabCtrl :: MFC Pin
valikac28-Oct-02 18:06
valikac28-Oct-02 18:06 
GeneralRe: CFormView and CTabCtrl :: MFC Pin
super29-Oct-02 1:55
professionalsuper29-Oct-02 1:55 
GeneralRe: CFormView and CTabCtrl :: MFC Pin
valikac29-Oct-02 4:31
valikac29-Oct-02 4:31 
Generalvb program rune fine but the same gives error in VC++ Pin
Anonymous28-Oct-02 18:07
Anonymous28-Oct-02 18:07 
GeneralRe: vb program rune fine but the same gives error in VC++ Pin
Anonymous29-Oct-02 0:52
Anonymous29-Oct-02 0:52 
GeneralRe: vb program rune fine but the same gives error in VC++ Pin
Anonymous29-Oct-02 18:36
Anonymous29-Oct-02 18:36 
GeneralRe: vb program rune fine but the same gives error in VC++ Pin
Rickard Andersson2029-Oct-02 2:16
Rickard Andersson2029-Oct-02 2:16 
GeneralRe: vb program rune fine but the same gives error in VC++ Pin
Anonymous29-Oct-02 18:46
Anonymous29-Oct-02 18:46 
Generalcant find WM_SETFOCUS for .... Pin
devvvy28-Oct-02 17:30
devvvy28-Oct-02 17:30 
GeneralRe: cant find WM_SETFOCUS for .... Pin
Shog928-Oct-02 18:29
sitebuilderShog928-Oct-02 18:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.