Article View: borland.public.cppbuilder.nativeapi
Article #15510Re: How to terminate a application immediately
From: Rodolfo Frino
Date: Wed, 02 Jul 2003 13:30
Date: Wed, 02 Jul 2003 13:30
26 lines
1692 bytes
1692 bytes
Use either ExitProcess() or TerminateProcess() Win32 API's. However, bear in mind that ExitProcess is the preferred method of terminating a process since it calls the entry-point function of all attached DLLs with a value indicating that the process is detaching from the DLL. "Computers don't die, they password away" Rodolfo Frino "HuangC" <HuangC@motic.com.cn> wrote in message news:3f0238c6$1@newsgroups.borland.com... > hi all, > > I want to terminate a application immediately > when the initialize some object failed in the > construct funtion.I try to use > Application->Terminate(); return; > but the application continue creating other forms however. > > any hint? TIA > > HuangC > >
Technical Details
Message-ID:
<3f02de76@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f0238c6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2d8349b0d005c697 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-02 06:40:18 PST From: "Rodolfo Frino" <rodolfofrino@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f0238c6$1@newsgroups.borland.com> Subject: Re: How to terminate a application immediately Date: Wed, 2 Jul 2003 23:30:36 +1000 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 203.206.27.140 Message-ID: <3f02de76@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1057152630 203.206.27.140 (2 Jul 2003 06:30:30 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail