Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWM_CLOSE Pin
vijayaramaraju1-Jul-01 21:27
vijayaramaraju1-Jul-01 21:27 
GeneralRe: WM_CLOSE Pin
Gert Boddaert2-Jul-01 4:48
Gert Boddaert2-Jul-01 4:48 
GeneralRe: WM_CLOSE Pin
Hadi Rezaee2-Jul-01 8:29
Hadi Rezaee2-Jul-01 8:29 
GeneralRe: WM_CLOSE Pin
Jack Handy2-Jul-01 9:52
Jack Handy2-Jul-01 9:52 
GeneralRe: WM_CLOSE Pin
Hadi Rezaee2-Jul-01 10:40
Hadi Rezaee2-Jul-01 10:40 
GeneralRe: WM_CLOSE Pin
Gert Boddaert2-Jul-01 21:36
Gert Boddaert2-Jul-01 21:36 
Questionnew & modal ... stupid questions ? Pin
1-Jul-01 17:21
suss1-Jul-01 17:21 
AnswerRe: new & modal ... stupid questions ? Pin
Christian Graus1-Jul-01 18:15
protectorChristian Graus1-Jul-01 18:15 
The difference is that m_Option is obviously a member variable to a pointer, Option is just an istance of the dialog. You never call delete on a CWnd, you call DestroyWindow, which ( I believe ) will be called for you in the case of a modal dialog. You should definately set m_Option to NULL after the DoModal though, and also in your constructor, for safety.

Christian

#include "std_disclaimer.h"

People who love sausage and respect the law should never watch either one being made.

The things that come to those who wait are usually the things left by those who got there first.

AnswerRe: new & modal ... stupid questions ? Pin
zhenguri1-Jul-01 19:10
zhenguri1-Jul-01 19:10 
GeneralRe: new & modal ... stupid questions ? Pin
2-Jul-01 10:33
suss2-Jul-01 10:33 
General"No Disk" message. Pin
Gunter Maywald1-Jul-01 17:04
Gunter Maywald1-Jul-01 17:04 
GeneralRe: "No Disk" message. Pin
Andrew Lawrence9-Feb-10 12:10
Andrew Lawrence9-Feb-10 12:10 
GeneralConverting CString to int in Visaul C++, please help. Pin
JavaTony1-Jul-01 16:55
JavaTony1-Jul-01 16:55 
GeneralRe: Converting CString to int in Visaul C++, please help. Pin
Matt Gullett1-Jul-01 16:58
Matt Gullett1-Jul-01 16:58 
GeneralRe: Converting CString to int in Visaul C++, please help. Pin
Stephen Kellett2-Jul-01 4:48
Stephen Kellett2-Jul-01 4:48 
GeneralRe: Converting CString to int in Visaul C++, please help. Pin
Ben Burnett1-Jul-01 17:39
Ben Burnett1-Jul-01 17:39 
GeneralRe: Converting CString to int in Visaul C++, please help. Pin
1-Jul-01 18:34
suss1-Jul-01 18:34 
GeneralRe: Converting CString to int in Visaul C++, please help. Pin
Christian Graus1-Jul-01 19:01
protectorChristian Graus1-Jul-01 19:01 
GeneralAsk for help about color code to OpenGL graphic object Pin
Jane1-Jul-01 16:40
Jane1-Jul-01 16:40 
GeneralRe: Ask for help about color code to OpenGL graphic object Pin
Jonathan de Halleux30-Oct-01 1:16
Jonathan de Halleux30-Oct-01 1:16 
QuestionListCtrl/ListView help wanted. I think??? Pin
Michael Martin1-Jul-01 15:11
professionalMichael Martin1-Jul-01 15:11 
AnswerRe: ListCtrl/ListView help wanted. I think??? Pin
Michael Dunn1-Jul-01 15:28
sitebuilderMichael Dunn1-Jul-01 15:28 
GeneralRe: ListCtrl/ListView help wanted. I think??? Pin
Michael Martin1-Jul-01 17:37
professionalMichael Martin1-Jul-01 17:37 
GeneralPrinting metafile Pin
nw603121-Jul-01 13:09
nw603121-Jul-01 13:09 
Questionplease help!! - document/view problems?? Pin
1-Jul-01 12:11
suss1-Jul-01 12:11 

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.