Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Accepting a file Pin
islheg6-Dec-05 4:27
islheg6-Dec-05 4:27 
QuestionRe: Accepting a file Pin
David Crow6-Dec-05 4:40
David Crow6-Dec-05 4:40 
AnswerRe: Accepting a file Pin
islheg7-Dec-05 4:46
islheg7-Dec-05 4:46 
GeneralRe: Accepting a file Pin
David Crow7-Dec-05 5:36
David Crow7-Dec-05 5:36 
QuestionMessage for activating property page in tab control? Pin
george ivanov5-Dec-05 5:37
george ivanov5-Dec-05 5:37 
AnswerRe: Message for activating property page in tab control? Pin
David Crow5-Dec-05 6:24
David Crow5-Dec-05 6:24 
GeneralRe: Message for activating property page in tab control? Pin
george ivanov5-Dec-05 21:56
george ivanov5-Dec-05 21:56 
QuestionMEMORY LEAK...... Pin
rajeev825-Dec-05 4:59
rajeev825-Dec-05 4:59 
Hi,
I've developed an application in which I've 2 dialog boxes(not property sheets) and they are all modeless dialogs .By clicking a button in the dialog1 the user can move to dialog2 and he can also move back to dialog1 by clicking another button in dialog2.
In dialog1 after the button is clicked i'm creating dialog2 overloading the "Create" function and the code for that is something like....
DestroyWindow(); //to destroy dialog1
d2=new dialog2; //d2 is apointer of class belongong to dialog1
d2->Create(IDD_DIALOG2,NULL); //dialog2 is created

the problem here is, I'm not able to delete the pointer d2,because if i delete it within the destructor of class dialog1 then the dialog2 wont be visible .If i dont delete it it leads to a "MEMORY LEAK" .Same is the case with dialog2.........
So I'd like to know which will be the right place to delete the pointer so that the dialogs are created properly and there wont be any memory leak.Anxiously waiting for a reply....thanks in advance.


Rajeev
AnswerRe: MEMORY LEAK...... Pin
Blake Miller5-Dec-05 6:03
Blake Miller5-Dec-05 6:03 
Question.How to connect VC++ with C51 programs Pin
sheshidar5-Dec-05 3:26
sheshidar5-Dec-05 3:26 
AnswerRe: .How to connect VC++ with C51 programs Pin
toxcct5-Dec-05 3:52
toxcct5-Dec-05 3:52 
GeneralRe: .How to connect VC++ with C51 programs Pin
khan++5-Dec-05 4:05
khan++5-Dec-05 4:05 
AnswerRe: .How to connect VC++ with C51 programs Pin
normanS5-Dec-05 18:27
normanS5-Dec-05 18:27 
Questionng you.How to connect VC++ with C51 programs Pin
sheshidar5-Dec-05 3:25
sheshidar5-Dec-05 3:25 
AnswerRe: ng you.How to connect VC++ with C51 programs Pin
khan++5-Dec-05 3:39
khan++5-Dec-05 3:39 
GeneralRe: ng you.How to connect VC++ with C51 programs Pin
sheshidar23-Dec-05 3:19
sheshidar23-Dec-05 3:19 
GeneralRe: ng you.How to connect VC++ with C51 programs Pin
khan++23-Dec-05 3:51
khan++23-Dec-05 3:51 
QuestionMFC doc/view printing: printing a different document Pin
-Dy5-Dec-05 2:30
-Dy5-Dec-05 2:30 
AnswerRe: MFC doc/view printing: printing a different document Pin
Cool Ju5-Dec-05 21:59
Cool Ju5-Dec-05 21:59 
AnswerRe: MFC doc/view printing: printing a different document (solution) Pin
-Dy5-Dec-05 22:44
-Dy5-Dec-05 22:44 
Question[Message Deleted] Pin
newbie53455-Dec-05 1:13
newbie53455-Dec-05 1:13 
AnswerRe: error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." Pin
2249175-Dec-05 1:22
2249175-Dec-05 1:22 
GeneralRe: error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." Pin
newbie53455-Dec-05 1:54
newbie53455-Dec-05 1:54 
AnswerRe: error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." Pin
Cool Ju5-Dec-05 1:46
Cool Ju5-Dec-05 1:46 
GeneralRe: error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." Pin
newbie53455-Dec-05 1:55
newbie53455-Dec-05 1:55 

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.