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

C / C++ / MFC

 
AnswerRe: Closing first dialog box while second is still running Pin
VCProgrammer1-Apr-09 2:57
VCProgrammer1-Apr-09 2:57 
GeneralRe: Closing first dialog box while second is still running Pin
ThatsAlok1-Apr-09 18:39
ThatsAlok1-Apr-09 18:39 
QuestionRe: Closing first dialog box while second is still running Pin
David Crow1-Apr-09 3:01
David Crow1-Apr-09 3:01 
Questionpointer deletion querry Pin
Deepu Antony1-Apr-09 2:09
Deepu Antony1-Apr-09 2:09 
AnswerRe: pointer deletion querry Pin
Rajesh R Subramanian1-Apr-09 2:12
professionalRajesh R Subramanian1-Apr-09 2:12 
AnswerRe: pointer deletion querry Pin
Cedric Moonen1-Apr-09 2:12
Cedric Moonen1-Apr-09 2:12 
AnswerRe: pointer deletion querry Pin
Deepu Antony1-Apr-09 2:15
Deepu Antony1-Apr-09 2:15 
AnswerRe: pointer deletion querry Pin
CPallini1-Apr-09 2:17
mveCPallini1-Apr-09 2:17 
Deepu Antony wrote:
Whether pointer q is also created on the heap.
If so how to delete it?


If the momory pointed by q (pointers are ususally created on the stack) is created on the heap then you must use delete.


Deepu Antony wrote:
Is q = NULL is correct?

Again, when q points heap-allocated memory you've to delete it. Invalidating the pointer afterward is a good pactice (for instance):
int * q;
q = new int[10];
//...
//...
if (q) delete [] q;
q = NULL;


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: pointer deletion querry Pin
ThatsAlok1-Apr-09 18:48
ThatsAlok1-Apr-09 18:48 
QuestionEnumerating users Pin
Eikthrynir1-Apr-09 1:50
Eikthrynir1-Apr-09 1:50 
AnswerRe: Enumerating users Pin
Iain Clarke, Warrior Programmer1-Apr-09 2:00
Iain Clarke, Warrior Programmer1-Apr-09 2:00 
QuestionRe: Enumerating users Pin
David Crow1-Apr-09 3:04
David Crow1-Apr-09 3:04 
AnswerRe: Enumerating users Pin
Eikthrynir2-Apr-09 3:15
Eikthrynir2-Apr-09 3:15 
AnswerRe: Enumerating users Pin
ThatsAlok1-Apr-09 18:59
ThatsAlok1-Apr-09 18:59 
GeneralRe: Enumerating users Pin
Eikthrynir2-Apr-09 3:14
Eikthrynir2-Apr-09 3:14 
QuestionIsThemeActive Pin
Dieter Hammer1-Apr-09 1:46
Dieter Hammer1-Apr-09 1:46 
QuestionHow to get the name of the current .exe of my application within my application Pin
kapardhi1-Apr-09 1:37
kapardhi1-Apr-09 1:37 
AnswerRe: How to get the name of the current .exe of my application within my application Pin
Rajesh R Subramanian1-Apr-09 1:43
professionalRajesh R Subramanian1-Apr-09 1:43 
JokeRe: How to get the name of the current .exe of my application within my application Pin
CPallini1-Apr-09 2:06
mveCPallini1-Apr-09 2:06 
JokeRe: How to get the name of the current .exe of my application within my application Pin
Rajesh R Subramanian1-Apr-09 2:09
professionalRajesh R Subramanian1-Apr-09 2:09 
JokeRe: How to get the name of the current .exe of my application within my application Pin
CPallini1-Apr-09 2:11
mveCPallini1-Apr-09 2:11 
JokeRe: How to get the name of the current .exe of my application within my application Pin
Rajesh R Subramanian1-Apr-09 2:14
professionalRajesh R Subramanian1-Apr-09 2:14 
GeneralRe: How to get the name of the current .exe of my application within my application Pin
CPallini1-Apr-09 2:37
mveCPallini1-Apr-09 2:37 
GeneralThank you! Pin
Rajesh R Subramanian1-Apr-09 2:39
professionalRajesh R Subramanian1-Apr-09 2:39 
GeneralRe: How to get the name of the current .exe of my application within my application Pin
ThatsAlok1-Apr-09 19:00
ThatsAlok1-Apr-09 19:00 

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.