Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: QUERY: How to control external exe & read it's process details Pin
Richard Andrew x6421-Jul-11 5:34
professionalRichard Andrew x6421-Jul-11 5:34 
AnswerRe: QUERY: How to control external exe & read it's process details Pin
Abhi Lahare21-Jul-11 5:38
Abhi Lahare21-Jul-11 5:38 
AnswerRe: QUERY: How to control external exe & read it's process details Pin
jschell21-Jul-11 8:50
jschell21-Jul-11 8:50 
AnswerRe: QUERY: How to control external exe & read it's process details Pin
«_Superman_»21-Jul-11 9:00
professional«_Superman_»21-Jul-11 9:00 
QuestionDoes "delete" operator work for PVOID pointers? Pin
Cold_Fearing_Bird21-Jul-11 2:36
Cold_Fearing_Bird21-Jul-11 2:36 
AnswerRe: Does "delete" operator work for PVOID pointers? Pin
Maximilien21-Jul-11 3:03
Maximilien21-Jul-11 3:03 
GeneralRe: Does "delete" operator work for PVOID pointers? Pin
Albert Holguin21-Jul-11 4:31
professionalAlbert Holguin21-Jul-11 4:31 
AnswerRe: Does "delete" operator work for PVOID pointers? Pin
Rajesh R Subramanian21-Jul-11 3:23
professionalRajesh R Subramanian21-Jul-11 3:23 
delete will try to call the destructor of the object that the pointer is pointing to, and then deallocate the memory associated (by calling operator delete for that object). If you cast the type away to void, then there's no destructor associated, and as a result, all the memory will not be de-allocated properly.

I also do not understand why would you need to do such a thing.
"Real men drive manual transmission" - Rajesh.

GeneralRe: Does "delete" operator work for PVOID pointers? Pin
Cold_Fearing_Bird21-Jul-11 4:37
Cold_Fearing_Bird21-Jul-11 4:37 
GeneralRe: Does "delete" operator work for PVOID pointers? Pin
Chris Losinger21-Jul-11 5:01
professionalChris Losinger21-Jul-11 5:01 
GeneralRe: Does "delete" operator work for PVOID pointers? Pin
David Crow21-Jul-11 5:11
David Crow21-Jul-11 5:11 
GeneralRe: Does "delete" operator work for PVOID pointers? Pin
Richard Andrew x6421-Jul-11 5:31
professionalRichard Andrew x6421-Jul-11 5:31 
GeneralRe: Does "delete" operator work for PVOID pointers? Pin
David Crow21-Jul-11 6:16
David Crow21-Jul-11 6:16 
GeneralRe: Does "delete" operator work for PVOID pointers? Pin
Stefan_Lang22-Jul-11 0:35
Stefan_Lang22-Jul-11 0:35 
AnswerRe: Does "delete" operator work for PVOID pointers? Pin
Chris Losinger21-Jul-11 4:55
professionalChris Losinger21-Jul-11 4:55 
GeneralRe: Does "delete" operator work for PVOID pointers? Pin
Maximilien21-Jul-11 5:03
Maximilien21-Jul-11 5:03 
QuestionRestrict InvalidateRect Pin
manju 321-Jul-11 2:12
manju 321-Jul-11 2:12 
AnswerRe: Restrict InvalidateRect Pin
Roger Allen26-Jul-11 6:28
Roger Allen26-Jul-11 6:28 
QuestionHow to use "UnitTest" to test C++ code [modified] Pin
Cold_Fearing_Bird20-Jul-11 21:49
Cold_Fearing_Bird20-Jul-11 21:49 
AnswerRe: How to use "UnitTest" to test C++ code Pin
_AnsHUMAN_ 21-Jul-11 1:28
_AnsHUMAN_ 21-Jul-11 1:28 
GeneralRe: How to use "UnitTest" to test C++ code Pin
Stefan_Lang21-Jul-11 1:57
Stefan_Lang21-Jul-11 1:57 
GeneralRe: How to use "UnitTest" to test C++ code Pin
Cold_Fearing_Bird21-Jul-11 2:33
Cold_Fearing_Bird21-Jul-11 2:33 
GeneralRe: How to use "UnitTest" to test C++ code Pin
Stefan_Lang21-Jul-11 2:55
Stefan_Lang21-Jul-11 2:55 
GeneralRe: How to use "UnitTest" to test C++ code Pin
Cold_Fearing_Bird21-Jul-11 4:45
Cold_Fearing_Bird21-Jul-11 4:45 
AnswerRe: How to use "UnitTest" to test C++ code Pin
Rolf Kristensen27-Jul-11 12:18
Rolf Kristensen27-Jul-11 12:18 

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.