Re: Exiting an app
From: Ajay Kalra (ajaykalra_at_yahoo.com)
Date: 06/03/04
- Next message: Alexander Grigoriev: "Re: Windows resource kit"
- Previous message: matt: "Strange Leak Behavior"
- In reply to: William Gower: "Exiting an app"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 2 Jun 2004 20:03:06 -0700
I was wondering why do you need to have Doc/View to accomplish this? Even a
Console app will do this. Perhaps you are doing something else as well. As
already pointed out, PostMessage(WM_CLOSE) to main window (AfxGetMainWnd)
will do what you want.
-- Ajay Kalra [MVP - VC++] ajaykalra@yahoo.com "William Gower" <w_gower@hotmail.com> wrote in message news:eFk3PHLSEHA.2936@TK2MSFTNGP10.phx.gbl... > I want to create an MFC app that will just update a database and then exit. > In my NewDocument() method of my doc class I update the database and where > should I call the exit and what should the call be? > >
- Next message: Alexander Grigoriev: "Re: Windows resource kit"
- Previous message: matt: "Strange Leak Behavior"
- In reply to: William Gower: "Exiting an app"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|