debug error occured while use exit(0) statemnt on click menu

  • Thread starter Thread starter Alex Lu
  • Start date Start date
A

Alex Lu

Hi,
I am new to vc++.net programming ,while I use exit(0) statement on
button click event , it is OK,
but when I use exit(0) statement on menu click event, there will be a debug
error,could anybody tell
me why?

_CRTIMP void _cdecl _CrtDbgBreak(
void
)
{
DebugBreak();
}


Alex
 
In an MFC app, if you want to exit, PostMessage a WM_CLOSE to your main
window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top