Re: Exiting an app

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ajay Kalra (ajaykalra_at_yahoo.com)
Date: 06/03/04


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?
>
>


Relevant Pages

  • Limit access to a database
    ... I am creating a database to be used across an LAN for everyone in my company. ... open the file, do their modifications, and exit. ... Is there a way to accomplish ...
    (microsoft.public.access.security)
  • Re: INKEY$
    ... variables depending on user input. ... "Karl E. Peterson" wrote: ... Unless you're talking about writing a console app, ... you could let us know a bit more specifically what you're trying to accomplish, ...
    (microsoft.public.vb.general.discussion)
  • How to get title of application/console window
    ... GUI applications and console applications. ... What is the best way to accomplish this? ... application is a GUI or console app. ... but I was hoping for something more elegant. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: FileSystemWatcher at 99% cpu
    ... handler but checking errors to determine when to exit the program. ... You probably don't actually need it to be a console app. ... If you need to capture multiple events, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Generate SQL scripts in Management Studio
    ... this console app: http://www.codeplex.com/scriptdb ... it will generate a separate file for each object, ... for each and every object in the database, ... possible in Enterprise Manager but not in Management Studio. ...
    (microsoft.public.sqlserver.tools)