Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Transparent button disable other functions :( Pin
RobJones16-Oct-01 9:35
RobJones16-Oct-01 9:35 
GeneralSOS: changing fonts of controls in dialog Pin
tfElep15-Oct-01 23:28
tfElep15-Oct-01 23:28 
GeneralRe: SOS: changing fonts of controls in dialog Pin
Michael Martin16-Oct-01 1:33
professionalMichael Martin16-Oct-01 1:33 
GeneralRe: SOS: changing fonts of controls in dialog Pin
Tomasz Sowinski16-Oct-01 1:34
Tomasz Sowinski16-Oct-01 1:34 
GeneralFocus problem Pin
Nick Armstrong15-Oct-01 22:48
Nick Armstrong15-Oct-01 22:48 
GeneralRe: Focus problem Pin
Tomasz Sowinski16-Oct-01 1:28
Tomasz Sowinski16-Oct-01 1:28 
GeneralRe: Focus problem Pin
Nick Armstrong17-Oct-01 1:25
Nick Armstrong17-Oct-01 1:25 
QuestionDifference between New and Malloc ? Pin
15-Oct-01 22:40
suss15-Oct-01 22:40 
I noticed in various program loops that allocating a buffer with the new operator didn't seem to work each time. I mean it did work but partially, I sometime have partially allocated buffers (?).

This:
char* pBuf = new char[iVariable];

is not safe. When iVariable is a constant, like MAX_PATH it always succeed but not when it has a dynamic value.

I admit, I seldom test if the allocation succeded or not but the buffer is always allocated but not on the entire sequence (?). Maybe doesn't the new operator allocate contiguous memory blocks and then a pointer operation (pBuf++) is not safe ?

Then, I wonder when I should use malloc instead of new to get sure the buffer is allocated ?


Yarp
AnswerRe: Difference between New and Malloc ? Pin
markkuk16-Oct-01 1:04
markkuk16-Oct-01 1:04 
GeneralRe: Difference between New and Malloc ? Pin
Tomasz Sowinski16-Oct-01 1:21
Tomasz Sowinski16-Oct-01 1:21 
AnswerRe: Difference between New and Malloc ? Pin
Tomasz Sowinski16-Oct-01 1:10
Tomasz Sowinski16-Oct-01 1:10 
GeneralRe: Difference between New and Malloc ? Pin
16-Oct-01 5:53
suss16-Oct-01 5:53 
AnswerRe: found out the problem Pin
yarp16-Oct-01 8:31
yarp16-Oct-01 8:31 
GeneralRegister my OLE/COM object Pin
15-Oct-01 22:00
suss15-Oct-01 22:00 
GeneralRe: Register my OLE/COM object Pin
Christian Graus15-Oct-01 22:45
protectorChristian Graus15-Oct-01 22:45 
Generalthank you ! Can you explain me some things ? Pin
15-Oct-01 23:18
suss15-Oct-01 23:18 
GeneralRe: thank you ! Can you explain me some things ? Pin
Christian Graus15-Oct-01 23:46
protectorChristian Graus15-Oct-01 23:46 
GeneralRegister my OLE/COM object Pin
15-Oct-01 23:40
suss15-Oct-01 23:40 
GeneralRe: Register my OLE/COM object Pin
Christian Graus16-Oct-01 0:20
protectorChristian Graus16-Oct-01 0:20 
Generalexcuse me ! It was stupid ! but- Pin
16-Oct-01 0:36
suss16-Oct-01 0:36 
GeneralRe: excuse me ! It was stupid ! but- Pin
Michael P Butler16-Oct-01 0:43
Michael P Butler16-Oct-01 0:43 
Generalexcuse me ! I didnt understand you ! Pin
16-Oct-01 0:53
suss16-Oct-01 0:53 
GeneralRe: excuse me ! I didnt understand you ! Pin
Christian Graus16-Oct-01 1:22
protectorChristian Graus16-Oct-01 1:22 
GeneralRe: excuse me ! I didnt understand you ! Pin
#realJSOP16-Oct-01 1:28
professional#realJSOP16-Oct-01 1:28 
QuestionHow to get the width and height of a window? (MFC) Pin
15-Oct-01 21:10
suss15-Oct-01 21:10 

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.