|
-
April 8th, 1999, 12:51 PM
#6
Re: AfxMessageBox doesn't work!
Hey,
It works even if it placed before instantiating the dialog. Here is my code:
...
AfxMessageBox("hi");
CDlgtestDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
...
By that time I am calling msg box, m_pMainWnd is null because it's nothing but the handle to the dialog object. Even I am surprised to see this working.. Can u tell me why?
Regards,
Rangaraya Sharma.
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
|