Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: use string instead of commands Pin
BlackDice3-Nov-04 8:00
BlackDice3-Nov-04 8:00 
GeneralHave a custom titlebar Pin
dSolariuM3-Nov-04 2:26
dSolariuM3-Nov-04 2:26 
GeneralCreateFile ... error C2065 Pin
gunnar663-Nov-04 2:13
gunnar663-Nov-04 2:13 
GeneralRe: CreateFile ... error C2065 Pin
P-Rex3-Nov-04 2:55
P-Rex3-Nov-04 2:55 
GeneralRe: CreateFile ... error C2065 Pin
gunnar663-Nov-04 3:22
gunnar663-Nov-04 3:22 
GeneralRe: CreateFile ... error C2065 Pin
Antony M Kancidrowski3-Nov-04 4:26
Antony M Kancidrowski3-Nov-04 4:26 
QuestionAny help for memory leak ? Pin
Amarelia3-Nov-04 1:43
Amarelia3-Nov-04 1:43 
AnswerRe: Any help for memory leak ? Pin
Selvam R3-Nov-04 2:31
professionalSelvam R3-Nov-04 2:31 
Hi,

If you allocate memory using malloc or calloc function you definitely delete memory using free function. Otherwise, you will get the error message.

See MSDN,

"Important Mixing the new and delete operators with the resizable memory-allocation functions on the same memory block will result in corrupted memory in the Debug version of MFC. You should not use realloc on a memory block allocated with new. Likewise, you should not allocate a memory block with the new operator and delete it with free, or use the delete operator on a block of memory allocated with malloc."



AnswerRe: Any help for memory leak ? Pin
Henry miller3-Nov-04 2:45
Henry miller3-Nov-04 2:45 
GeneralHardware programming help Pin
Pothirajan C3-Nov-04 1:18
Pothirajan C3-Nov-04 1:18 
GeneralColoring static group box Pin
balajeedurai3-Nov-04 0:29
balajeedurai3-Nov-04 0:29 
GeneralRe: Coloring static group box Pin
Ravi Bhavnani3-Nov-04 2:40
professionalRavi Bhavnani3-Nov-04 2:40 
GeneralRe: Coloring static group box Pin
Selvam R3-Nov-04 2:44
professionalSelvam R3-Nov-04 2:44 
GeneralHelp Files In a MFC Application Pin
sweep1232-Nov-04 23:31
sweep1232-Nov-04 23:31 
QuestionHow to write o soft keyboard Pin
ledallam2-Nov-04 23:31
ledallam2-Nov-04 23:31 
AnswerRe: How to write o soft keyboard Pin
vcplusplus2-Nov-04 23:54
vcplusplus2-Nov-04 23:54 
QuestionHow to hide a file (any file)? Pin
john_tran2-Nov-04 23:24
john_tran2-Nov-04 23:24 
AnswerRe: How to hide a file (any file)? Pin
jan larsen3-Nov-04 0:20
jan larsen3-Nov-04 0:20 
GeneralRe: How to hide a file (any file)? Pin
john_tran4-Nov-04 3:25
john_tran4-Nov-04 3:25 
GeneralRe: How to hide a file (any file)? Pin
jan larsen4-Nov-04 3:32
jan larsen4-Nov-04 3:32 
GeneralRe: How to hide a file (any file)? Pin
john_tran4-Nov-04 3:45
john_tran4-Nov-04 3:45 
GeneralRe: How to hide a file (any file)? Pin
jan larsen4-Nov-04 3:47
jan larsen4-Nov-04 3:47 
GeneralRe: How to hide a file (any file)? Pin
jan larsen4-Nov-04 3:49
jan larsen4-Nov-04 3:49 
AnswerRe: How to hide a file (any file)? Pin
David Crow3-Nov-04 3:24
David Crow3-Nov-04 3:24 
Generalstrtok, Find the next token in a string Pin
gunnar662-Nov-04 23:07
gunnar662-Nov-04 23:07 

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.