🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2660

Re: WinExec and multiple istances

#2660
From: Alan Bellingham
Date: Fri, 26 Jan 2007 09:25
21 lines
1908 bytes
Alberto <dibene@usa.net> wrote:

>Just set a flag in your program... if WinExec has already been called, 
>ignore
>the second pressure on that button.
>You can reset that flag when the Notepad process terminates.

You could use a single handle onto the process. If the handle is already
non-null, then it's running (or you've not yet checked its termination
condition). If null, you've either never run it, or you've seen it
terminate already and reset the handle to null.

On the other hand, though this would technically work, it's unlikely to
provide the probable required functionality of loading the latest log
state. For this, a simple window with a simple edit control on it would
be better.

Alan Bellingham
-- 
10th Anniversary ACCU Conference: 11-14 April 2007 - Oxford, UK
(Booking now open: see http://accu.org/index.php/conferences for details)
Technical Details
Message-ID: <a3ijr2pt5fkvoaq3op8nljfl8i2idon2oe@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45b793fe@newsgroups.borland.com> <45b90a4b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,21a207d706a45f41
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Alan Bellingham <alan@lspace.org>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: WinExec and multiple istances
Date: Fri, 26 Jan 2007 09:25:55 +0000
Organization: Private
Reply-To: alan@lspace.org
Message-ID: <a3ijr2pt5fkvoaq3op8nljfl8i2idon2oe@4ax.com>
References: <45b793fe@newsgroups.borland.com> <45b90a4b@newsgroups.borland.com>
X-Newsreader: Forte Agent 4.1/32.1088
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.129.251.253
X-Trace: newsgroups.borland.com 1169803507 193.129.251.253 (26 Jan 2007 01:25:07 -0800)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail