Article View: borland.public.cppbuilder.nativeapi
Article #16512WinExec problem
From: Enrico B.
Date: Mon, 12 May 2003 09:25
Date: Mon, 12 May 2003 09:25
17 lines
1605 bytes
1605 bytes
Hi!,
I need to launch, from my program, another application. I tried the
following instruction:
WinExec("C:/vvoce/vvoce.exe", SW_SHOWDEFAULT);
The problem: the external application launched this way does not function
correctly, because the working directory appears to be the directory of my
program, not the directory of the external application. If I run that
application by double clicking its link on my desktop, the application works
correctly. So: is there a way to programmatically emulate a double click on
the icon (link) that launches that application?
Thanks in advance.
Henry
Technical Details
Message-ID:
<3ebf64d6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,693f170cbcb1b384,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-12 02:51:37 PST Reply-To: "Enrico B." <eangelo@libero.it> From: "Enrico B." <eangelo@libero.it> Newsgroups: borland.public.cppbuilder.nativeapi Subject: WinExec problem Date: Mon, 12 May 2003 11:25:56 +0200 Lines: 20 Organization: Idinet X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2615.200 NNTP-Posting-Host: 212.38.42.46 Message-ID: <3ebf64d6@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052730582 212.38.42.46 (12 May 2003 02:09:42 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail