Article View: borland.public.cppbuilder.nativeapi
Article #2654WinExec and multiple istances
From: DavideP
Date: Wed, 24 Jan 2007 17:15
Date: Wed, 24 Jan 2007 17:15
15 lines
1408 bytes
1408 bytes
Hi everyone,
I've a little question.
I need to display a logfile of a program of mine, so I use:
WinExec('Notepad.exe C:\Temp\MyFile.txt', SW_SHOWDEFAULT);
on a OnClick event of a button.
It works well, but... by clicking several times on it I've found
multiple istances of Notepad opened...
How can I avoid this feature?
I need only one instance of notepad with my logfile.
Many thanks for the help.
Davide
Technical Details
Message-ID:
<45b793fe@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-stu1.dfn.de!news.germany.com!news.datemas.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!feeder02.uucp.at!feeder08.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,21a207d706a45f41,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 24 Jan 2007 18:15:17 +0100 From: DavideP <no.spam@here.plz> User-Agent: Mozilla Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: WinExec and multiple istances Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 84.223.178.151 Message-ID: <45b793fe@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1169658878 84.223.178.151 (24 Jan 2007 09:14:38 -0800) Lines: 15 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-stu1.dfn.de!news.germany.com!news.datemas.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!feeder02.uucp.at!feeder08.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail