Article View: borland.public.cppbuilder.nativeapi
Article #11716Re: Launcing a child process from VCL - re-direct STDIO
From: Tom Caton
Date: Tue, 20 Jan 2004 09:32
Date: Tue, 20 Jan 2004 09:32
27 lines
1895 bytes
1895 bytes
Gambit, Thanks - the CreateProcess route worked OK - I found a code sampe in the Microsoft ToolKit Samples - INHERIT.C which had most things in. Tom "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message news:400c49ac$1@newsgroups.borland.com... > > "Tom Caton" <tom_caton@xyratex.com> wrote in message > news:4007ff0d@newsgroups.borland.com... > > > I want to press a button on my form to launch another windows > > process, while the process is running I want to redirect the child's > > process stdout into a VCL memo box. > > Spawn the process using CreateProcess(). That will allow you to provide > your own STDOUT handle, which you can create using CreatePipe(). Then, for > the lifetime of the process, you can call ReadFile() to receive any > outputted data which you can then do whatever you want with. > > > Gambit > >
Technical Details
Message-ID:
<400cf59c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4007ff0d@newsgroups.borland.com> <400c49ac$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f909270c27571224 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-20 01:39:44 PST Reply-To: "Tom Caton" <tom_caton@xyratex.com> From: "Tom Caton" <tom_caton@xyratex.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4007ff0d@newsgroups.borland.com> <400c49ac$1@newsgroups.borland.com> Subject: Re: Launcing a child process from VCL - re-direct STDIO Date: Tue, 20 Jan 2004 09:32:12 -0000 Lines: 29 Organization: Xyratex 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: 194.131.166.4 Message-ID: <400cf59c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074591132 194.131.166.4 (20 Jan 2004 01:32:12 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail