Article View: borland.public.cppbuilder.nativeapi
Article #16025Re: log off/ application terminate
From: Eudy Carvalhaes C. Silva
Date: Wed, 04 Jun 2003 12:09
Date: Wed, 04 Jun 2003 12:09
29 lines
1823 bytes
1823 bytes
That's what it seems. I made a small app using Duane's code and the dtor is called when closing the main form, but it is not called if the app is running and I log off (Win98SE here). Then a "message mapped" WM_QUERYENDSESSION and coded in the handler: Message.Result = true; Close(); For this handler things are inverted: the handler is not called when normal closing the app but it is called when the app is running and the user logs off. I haven't tested under XP/2k. Eudy Remy Lebeau (TeamB) wrote: > "Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message > news:3edd66d9$1@newsgroups.borland.com... > >>The VCL already does that. > > Apparently not well enough, it turns out, after much testing... > > Gambit
Technical Details
Message-ID:
<3EDDE16A.5030506@iae.cta>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3edccd80@newsgroups.borland.com> <3EDD5EE0.9060804@fake.com> <3edd66d9$1@newsgroups.borland.com> <3edd6c58$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f4b8abe1a2fab575 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-04 05:32:51 PST Message-ID: <3EDDE16A.5030506@iae.cta> Date: Wed, 04 Jun 2003 09:09:14 -0300 From: "Eudy Carvalhaes C. Silva" <eudy@iae.cta> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: log off/ application terminate References: <3edccd80@newsgroups.borland.com> <3EDD5EE0.9060804@fake.com> <3edd66d9$1@newsgroups.borland.com> <3edd6c58$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 161.24.47.98 X-Trace: newsgroups.borland.com 1054728434 161.24.47.98 (4 Jun 2003 05:07:14 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail