Greetings:
I have found a strange problem which can be reproduced very easily:
1. Create an MFC Dialog Based Application. Select all default settings.
2. In the main source file you will find that AppWizard had declared an instance of your dialog and then calls dlg.DoModal().
3. Immediately after the call to DoModal, place a simple call to AfxMessageBox. Use simple parameters: AfxMessageBox("Hello", MB_OK)
4. Run this program. You will find that the message box will NOT appear after you click on OK for the Dialog box. If you move the AfxMessageBox call to just before DoModal, it works. But not after.
Does anybody know why this is? Can anybody tell me how I can issue message boxes after DoModal has returned? I have also tried the standard MessageBox routine with the same results.

Thank You!
Mark Roberts
Toronto, Canada

Soylent green is made out of people!