|
-
April 7th, 1999, 07:44 PM
#4
Re: AfxMessageBox doesn't work!
That's because AFXMessageBox reflies on the main window to produce the message box. It basically does this -> MessageBox(AfxGetMainWnd(),text,...); Since you place the AfxMessageBox after the DoModal(), the AfxGetMainWnd() will return a bad CWnd, since the dialog box is closed and destroyed. Just use a MessageBox(NULL,text,...); to do your box
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|