Click here to Skip to main content
15,896,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dynamic buffer allocation Pin
CodingLover4-Nov-07 23:31
CodingLover4-Nov-07 23:31 
GeneralRe: Dynamic buffer allocation Pin
Cedric Moonen4-Nov-07 23:44
Cedric Moonen4-Nov-07 23:44 
GeneralRe: Dynamic buffer allocation Pin
CodingLover5-Nov-07 0:02
CodingLover5-Nov-07 0:02 
GeneralRe: Dynamic buffer allocation Pin
David Crow5-Nov-07 3:38
David Crow5-Nov-07 3:38 
GeneralRe: Dynamic buffer allocation Pin
CodingLover5-Nov-07 17:13
CodingLover5-Nov-07 17:13 
GeneralRe: Dynamic buffer allocation Pin
Nelek4-Nov-07 23:43
protectorNelek4-Nov-07 23:43 
GeneralRe: Dynamic buffer allocation Pin
CodingLover5-Nov-07 0:07
CodingLover5-Nov-07 0:07 
GeneralRe: Dynamic buffer allocation Pin
Nelek5-Nov-07 1:03
protectorNelek5-Nov-07 1:03 
I have read Cedric's answer. I agree, but this doesn't mean is incorrect. If I know the format, I usually use the format. The code above was an example.

About the NULL after deleting, it actually is not a must, but it doesn't disturb at all, and I use it so, maybe to ensure that if I reuse the buffer, it won't go trhough ASSERT (pBuffer) by mistake because it still has the last address (although no datas in).

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: Dynamic buffer allocation Pin
CodingLover5-Nov-07 17:10
CodingLover5-Nov-07 17:10 
QuestionClear History Time Pin
revanth19854-Nov-07 18:22
revanth19854-Nov-07 18:22 
QuestionRe: Clear History Time Pin
Nelek4-Nov-07 22:04
protectorNelek4-Nov-07 22:04 
AnswerRe: Clear History Time Pin
revanth19854-Nov-07 23:03
revanth19854-Nov-07 23:03 
GeneralRe: Clear History Time Pin
Nelek4-Nov-07 23:45
protectorNelek4-Nov-07 23:45 
GeneralRe: Clear History Time Pin
revanth19854-Nov-07 23:57
revanth19854-Nov-07 23:57 
QuestionRe: Clear History Time Pin
David Crow5-Nov-07 3:41
David Crow5-Nov-07 3:41 
AnswerRe: Clear History Time Pin
revanth19855-Nov-07 18:42
revanth19855-Nov-07 18:42 
QuestionMFC Activex project Pin
ashishbhatt4-Nov-07 17:48
ashishbhatt4-Nov-07 17:48 
AnswerRe: MFC Activex project Pin
Prasann Mayekar4-Nov-07 19:20
Prasann Mayekar4-Nov-07 19:20 
GeneralRe: MFC Activex project Pin
ashishbhatt4-Nov-07 19:33
ashishbhatt4-Nov-07 19:33 
QuestionThread Socket programming Pin
Amjath Rahman4-Nov-07 16:14
Amjath Rahman4-Nov-07 16:14 
AnswerRe: Thread Socket programming Pin
David Crow4-Nov-07 16:16
David Crow4-Nov-07 16:16 
QuestionHOW TO get length of BYTE variable in C++ Pin
Ontanggabe Parulian4-Nov-07 14:56
Ontanggabe Parulian4-Nov-07 14:56 
AnswerRe: HOW TO get length of BYTE variable in C++ Pin
Llasus4-Nov-07 15:06
Llasus4-Nov-07 15:06 
GeneralRe: HOW TO get length of BYTE variable in C++ Pin
Ontanggabe Parulian4-Nov-07 15:55
Ontanggabe Parulian4-Nov-07 15:55 
GeneralRe: HOW TO get length of BYTE variable in C++ Pin
Llasus4-Nov-07 16:59
Llasus4-Nov-07 16:59 

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.