ramkrishna.jangale wrote:
CDialog::OnClose();
PostQuitMessage(0);
Remove
CDialog::OnClose()
and
PostQuitMessage(0);
Call
CDialog::OnCancel()
instead to shut down a dialog based application.
Another poster mentioned that some worker thread may be running, keeping the app alive. That's wrong. Such a thing can can never happen in a native language program (like C++). When the main thread comes to a halt, every other thread will be killed abruptly.