-
Ending app
Hi,
When my SDI application can't connect to its database, which is done in the Document class, it must end. How can this be done? I've tried PostQuitMessage en SendMessgage(WM_CLOSE), but they don't work, I think because the window is't created yet.
Thanks in advance,
Stijn
-
Re: Ending app
-
Re: Ending app
If your main window hasnt been created, you must still be somewhere within the InitInstace of the application class. If this is the case, try passing information back to the app class and get the InitInstance to return false.
(To find out where in the InitInstance your processing is being done, but a breakpoint in the code in the doc class, and step over code in the InitInstance till you hit your breakpoint).
-
Re: Ending app
Hello Brian,
Thanks for answering, it solved my problem.
Stijn