🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to call an Application in my Program?

#7999
From: nicolasr
Date: Mon, 06 Dec 2004 01:32
20 lines
1535 bytes
Hi,

start the application via CreateProcess() or ShellExecuteEx.()
Both functions return a process handle for the started
application.
You can use this handle in WaitForSingleObject() to wait for
the application to terminate. Finally use CloseHandle() to close
the process handle.

Nick

>I want to run an application from my program which will only continue when 
>that application has terminated.
>
> thanks
> Phuoc Can HUA
>
> -- 
> _/\__/\__/\__/\__/\__/\_
> www.folksfun.com 
Technical Details
Message-ID: <41b3b6b5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <opsij86711pmxkmr@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2a3dc7245adeed25
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <opsij86711pmxkmr@newsgroups.borland.com>
Subject: Re: How to call an Application in my Program?
Date: Mon, 6 Dec 2004 02:32:32 +0100
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 80.133.186.138
Message-ID: <41b3b6b5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102296757 80.133.186.138 (5 Dec 2004 17:32:37 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail