Click here to Skip to main content
16,011,566 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reserved resource IDS of MFC Pin
Cristian Amarie8-Jan-07 1:38
Cristian Amarie8-Jan-07 1:38 
AnswerRe: Reserved resource IDS of MFC Pin
Mark Salsbery8-Jan-07 6:06
Mark Salsbery8-Jan-07 6:06 
QuestionItem icon in Add/Remove progarms dialog Pin
LiYS7-Jan-07 20:43
LiYS7-Jan-07 20:43 
AnswerRe: Item icon in Add/Remove progarms dialog Pin
Monty27-Jan-07 20:59
Monty27-Jan-07 20:59 
Questionstrcpy working even after deleting the pointer Pin
pyarigopal7-Jan-07 20:42
pyarigopal7-Jan-07 20:42 
AnswerRe: strcpy working even after deleting the pointer Pin
Monty27-Jan-07 21:08
Monty27-Jan-07 21:08 
AnswerRe: strcpy working even after deleting the pointer [modified] Pin
Michael Dunn7-Jan-07 21:10
sitebuilderMichael Dunn7-Jan-07 21:10 
AnswerRe: strcpy working even after deleting the pointer Pin
Waldermort7-Jan-07 21:14
Waldermort7-Jan-07 21:14 
The operator new allocates the space and assigns an address to the variable. The operator delete only marks that memory as re-usable, it does not change the assigned pointer. Your code will not throw any errors because all strcpy will do is check theat the address points to memory, it will not check if it is usable or not.

If in your test code you allocated and used more memory after deleteing str and before strcpy, you may find that the same memory is being used. The golden rule is, set the address to NULL directly after calling delete.
GeneralRe: strcpy working even after deleting the pointer Pin
pyarigopal8-Jan-07 18:21
pyarigopal8-Jan-07 18:21 
AnswerRe: strcpy working even after deleting the pointer Pin
CPallini7-Jan-07 21:25
mveCPallini7-Jan-07 21:25 
GeneralRe: strcpy working even after deleting the pointer Pin
prasad_som7-Jan-07 21:29
prasad_som7-Jan-07 21:29 
QuestionHow can i use Image magick in MFC? Pin
$uresh $hanmugam7-Jan-07 20:17
$uresh $hanmugam7-Jan-07 20:17 
AnswerRe: How can i use Image magick in MFC? Pin
Hamid_RT7-Jan-07 20:37
Hamid_RT7-Jan-07 20:37 
GeneralRe: How can i use Image magick in MFC? Pin
$uresh $hanmugam7-Jan-07 21:04
$uresh $hanmugam7-Jan-07 21:04 
GeneralRe: How can i use Image magick in MFC? Pin
Hamid_RT7-Jan-07 21:37
Hamid_RT7-Jan-07 21:37 
GeneralRe: How can i use Image magick in MFC? Pin
$uresh $hanmugam7-Jan-07 21:51
$uresh $hanmugam7-Jan-07 21:51 
QuestionDLL Injection vs Code Injection Pin
SelvaKr7-Jan-07 20:06
SelvaKr7-Jan-07 20:06 
AnswerRe: DLL Injection vs Code Injection Pin
Stephen Hewitt7-Jan-07 20:18
Stephen Hewitt7-Jan-07 20:18 
GeneralRe: DLL Injection vs Code Injection Pin
SelvaKr7-Jan-07 20:25
SelvaKr7-Jan-07 20:25 
QuestionTitle Pin
Try7-Jan-07 18:56
Try7-Jan-07 18:56 
AnswerRe: Title Pin
prasad_som7-Jan-07 19:17
prasad_som7-Jan-07 19:17 
GeneralRe: Title Pin
Try7-Jan-07 19:24
Try7-Jan-07 19:24 
QuestionDLL and Program Compile Pin
uusheikh7-Jan-07 18:54
uusheikh7-Jan-07 18:54 
AnswerRe: DLL and Program Compile Pin
Rajesh R Subramanian7-Jan-07 19:10
professionalRajesh R Subramanian7-Jan-07 19:10 
GeneralRe: DLL and Program Compile Pin
uusheikh7-Jan-07 19:22
uusheikh7-Jan-07 19:22 

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.