Article View: borland.public.cppbuilder.nativeapi
Article #16692Re: how to start an application from inside my code?
From: Mehmet
Date: Tue, 29 Apr 2003 22:27
Date: Tue, 29 Apr 2003 22:27
43 lines
1896 bytes
1896 bytes
Hi,,,
You can use CreateProcess();
eg.
STARTUPINFO si;
ZeroMemory(&si, sizeof(STARTUPINFO));
si.cb = sizeof(STARTUPINFO);
PROCESS_INFORMATION pi;
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));
CreateProcess(NULL,
"c:\\program files\\internet explorer\\iexplore.exe -new
http://www.av.com",
NULL,
NULL,
FALSE,
0,
NULL,
NULL,
&si,
&pi
);
//close handles opened by CreateProcess
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
"Richard Yu" <richard@colorselector.com> wrote in message
news:3eaef833@newsgroups.borland.com...
> I want to start an exe application from inside my code, how can i do that
?
>
> example : like to start a "aApplication param1 param2", aApplication is
> an exe.
>
> something like shellexecute() ?
>
> thanks for the help.
>
>
Technical Details
Message-ID:
<3eaefc1e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eaef833@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,15c2c503d1ca5973 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-29 15:34:05 PST From: "Mehmet" <mehmet@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eaef833@newsgroups.borland.com> Subject: Re: how to start an application from inside my code? Date: Wed, 30 Apr 2003 01:27:20 +0300 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.153.165.233 Message-ID: <3eaefc1e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051655198 213.153.165.233 (29 Apr 2003 15:26:38 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail