|
-
May 4th, 1999, 04:51 AM
#1
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
-
May 4th, 1999, 09:09 AM
#2
-
May 4th, 1999, 10:53 AM
#3
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).
-
May 5th, 1999, 08:12 AM
#4
Re: Ending app
Hello Brian,
Thanks for answering, it solved my problem.
Stijn
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|