I've seen several similar post but still can't figure it all out.
My program uses a modal dialog ddt style and everything runs fine until I click the X in the upper right corner to end it or Alt-F4. Then I usually get a crash message asking if I want to send it to Microsoft. the error only occurs after the return to PBMain because I can display a message box there before it crashes and that's the last statement in my code.
I'm new to Windows programming so I'm having trouble understanding how I should terminate my program gracefully. I've closed my open files but do I also have to close the modal dialog somehow within the callback procedure before I can exit?
My program uses a modal dialog ddt style and everything runs fine until I click the X in the upper right corner to end it or Alt-F4. Then I usually get a crash message asking if I want to send it to Microsoft. the error only occurs after the return to PBMain because I can display a message box there before it crashes and that's the last statement in my code.
I'm new to Windows programming so I'm having trouble understanding how I should terminate my program gracefully. I've closed my open files but do I also have to close the modal dialog somehow within the callback procedure before I can exit?
Comment