Does anyone know how to close an application programmatically (kinda like AfxAbort() but without the ugly error message)?
Printable View
Does anyone know how to close an application programmatically (kinda like AfxAbort() but without the ugly error message)?
By calling the exit function.
yes, that works, but it causes memory leaks when closing the app. I was so stupid!! All I had to do was call my CMainFrame's OnClose() function. Thanks for your help, though!!
That sounds suspiciously to me like an event handler, or something you would atexit(). Are these memory leaks anything more than you just not cleaning up your malloc'ed memory?