Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to replace " with \" Pin
«_Superman_»23-Jun-09 4:54
professional«_Superman_»23-Jun-09 4:54 
QuestionMemory Leak Help Pin
OrangeV23-Jun-09 3:50
OrangeV23-Jun-09 3:50 
AnswerRe: Memory Leak Help Pin
«_Superman_»23-Jun-09 4:02
professional«_Superman_»23-Jun-09 4:02 
AnswerRe: Memory Leak Help Pin
Stuart Dootson23-Jun-09 4:20
professionalStuart Dootson23-Jun-09 4:20 
AnswerRe: Memory Leak Help Pin
Maximilien23-Jun-09 4:31
Maximilien23-Jun-09 4:31 
GeneralRe: Memory Leak Help Pin
OrangeV23-Jun-09 4:44
OrangeV23-Jun-09 4:44 
GeneralRe: Memory Leak Help Pin
Stuart Dootson23-Jun-09 5:31
professionalStuart Dootson23-Jun-09 5:31 
AnswerRe: Memory Leak Help Pin
Pavan_Putra25-Jun-09 20:00
Pavan_Putra25-Jun-09 20:00 
No ,this will not overwrite the Memory Space.
if you have created object and collected the Reference it's just a reference (i.e. constant pointer).If you will assign it a new address it 'll not delete old object.(As it should not, Bcoz that object may be used ant where else).So if you are sure it is not usable now.Then call delete on it first .Then create new and assign value to it.

But if you are not assigning new value , set it to null ('ll save from Dangling pointer).

So you can say

if( myObject != NULL)
delete myObject;

myObject = CreateObject(); //or myObject = NULL;

It's not enough to be the best, when you have capability to be great....

QuestionUnicode again Pin
bhanu_850923-Jun-09 3:39
bhanu_850923-Jun-09 3:39 
AnswerRe: Unicode again Pin
Code-o-mat23-Jun-09 4:04
Code-o-mat23-Jun-09 4:04 
QuestionShellExecute restriction? Pin
rp_suman23-Jun-09 3:07
rp_suman23-Jun-09 3:07 
QuestionRe: ShellExecute restriction? Pin
Rajesh R Subramanian23-Jun-09 3:11
professionalRajesh R Subramanian23-Jun-09 3:11 
QuestionRe: ShellExecute restriction? Pin
Roger Stoltz23-Jun-09 3:16
Roger Stoltz23-Jun-09 3:16 
AnswerRe: ShellExecute restriction? Pin
rp_suman23-Jun-09 3:30
rp_suman23-Jun-09 3:30 
AnswerRe: ShellExecute restriction? Pin
Rajesh R Subramanian24-Jun-09 20:35
professionalRajesh R Subramanian24-Jun-09 20:35 
AnswerRe: ShellExecute restriction? Pin
Rajesh R Subramanian23-Jun-09 3:30
professionalRajesh R Subramanian23-Jun-09 3:30 
AnswerRe: ShellExecute restriction? Pin
Rozis23-Jun-09 6:12
Rozis23-Jun-09 6:12 
QuestionNeed help on how to send SMS using VC++ program Pin
John50223-Jun-09 1:30
John50223-Jun-09 1:30 
AnswerRe: Need help on how to send SMS using VC++ program Pin
Hamid_RT23-Jun-09 1:50
Hamid_RT23-Jun-09 1:50 
Questionhow to get handle to a window Pin
B060611523-Jun-09 1:11
B060611523-Jun-09 1:11 
AnswerRe: how to get handle to a window Pin
Roger Stoltz23-Jun-09 1:22
Roger Stoltz23-Jun-09 1:22 
AnswerRe: how to get handle to a window Pin
CPallini23-Jun-09 1:38
mveCPallini23-Jun-09 1:38 
GeneralRe: how to get handle to a window Pin
Luc Pattyn23-Jun-09 2:12
sitebuilderLuc Pattyn23-Jun-09 2:12 
JokeRe: how to get handle to a window Pin
Roger Stoltz23-Jun-09 2:21
Roger Stoltz23-Jun-09 2:21 
GeneralRe: how to get handle to a window Pin
CPallini23-Jun-09 2:28
mveCPallini23-Jun-09 2:28 

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.