Click here to Skip to main content
15,917,481 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWell, hell,... Pin
ursus zeta18-Feb-03 7:36
ursus zeta18-Feb-03 7:36 
GeneralHelp with CMap Pin
Stefan Dahlin14-Feb-03 12:21
Stefan Dahlin14-Feb-03 12:21 
GeneralRe: Help with CMap Pin
Neville Franks14-Feb-03 12:37
Neville Franks14-Feb-03 12:37 
GeneralConfused About dlg.DoModal() Pin
Avantjer14-Feb-03 11:53
Avantjer14-Feb-03 11:53 
GeneralRe: Confused About dlg.DoModal() Pin
Rickard Andersson2014-Feb-03 11:56
Rickard Andersson2014-Feb-03 11:56 
GeneralRe: Confused About dlg.DoModal() Pin
Avantjer14-Feb-03 12:04
Avantjer14-Feb-03 12:04 
GeneralRe: Confused About dlg.DoModal() Pin
Rickard Andersson2014-Feb-03 12:11
Rickard Andersson2014-Feb-03 12:11 
GeneralRe: Confused About dlg.DoModal() Pin
Sean Cundiff14-Feb-03 12:21
Sean Cundiff14-Feb-03 12:21 
Your application actually exits upon return from:

int nResponse = dlg.DoModal();

This is because of the previous line:

m_pMainWnd = &dlg;

Searching in the MSDN documentation reveals:

The Microsoft Foundation Class Library will automatically terminate your thread when the window referred to by m_pMainWnd is closed. If this thread is the primary thread for an application, the application will also be terminated. If this data member is NULL, the main window for the application's CWinApp object will be used to determine when to terminate the thread. m_pMainWnd is a public variable of type CWnd*.

Typically, you set this member variable when you override InitInstance. In a worker thread, the value of this data member is inherited from its parent thread.




-Sean
----
Shag a Lizard
GeneralRe: Confused About dlg.DoModal() Pin
Avantjer14-Feb-03 12:26
Avantjer14-Feb-03 12:26 
GeneralRe: Confused About dlg.DoModal() Pin
don___14-Feb-03 15:14
sussdon___14-Feb-03 15:14 
GeneralStrange Array Problems, Please Please Help.. Pin
Ayush14-Feb-03 11:32
Ayush14-Feb-03 11:32 
GeneralRe: Strange Array Problems, Please Please Help.. Pin
valikac14-Feb-03 14:16
valikac14-Feb-03 14:16 
GeneralRe: Strange Array Problems, Please Please Help.. Pin
Ayush14-Feb-03 15:56
Ayush14-Feb-03 15:56 
GeneralRe: Strange Array Problems, Please Please Help.. Pin
valikac14-Feb-03 18:36
valikac14-Feb-03 18:36 
GeneralRe: Strange Array Problems, Please Please Help.. Pin
valikac14-Feb-03 18:43
valikac14-Feb-03 18:43 
GeneralRe: Strange Array Problems, Please Please Help.. Pin
Chris Richardson14-Feb-03 21:46
Chris Richardson14-Feb-03 21:46 
GeneralRe: Strange Array Problems, Please Please Help.. Pin
Ayush14-Feb-03 22:45
Ayush14-Feb-03 22:45 
GeneralRe: Strange Array Problems, Please Please Help.. Pin
Chris Richardson18-Feb-03 19:19
Chris Richardson18-Feb-03 19:19 
QuestionRFC822 / rfc1123 date / time parser? Pin
Member 9614-Feb-03 10:52
Member 9614-Feb-03 10:52 
AnswerRe: RFC822 / rfc1123 date / time parser? Pin
palbano14-Feb-03 11:21
palbano14-Feb-03 11:21 
GeneralRe: RFC822 / rfc1123 date / time parser? Pin
Member 9614-Feb-03 12:47
Member 9614-Feb-03 12:47 
GeneralRe: RFC822 / rfc1123 date / time parser? Pin
palbano14-Feb-03 13:06
palbano14-Feb-03 13:06 
AnswerRe: RFC822 / rfc1123 date / time parser? Pin
Gisle Vanem14-Feb-03 13:43
Gisle Vanem14-Feb-03 13:43 
GeneralEasy XML Pin
DJWALSH14-Feb-03 10:14
DJWALSH14-Feb-03 10:14 
GeneralRe: Easy XML Pin
Neville Franks14-Feb-03 11:01
Neville Franks14-Feb-03 11:01 

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.