🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Launcing a child process from VCL - re-direct STDIO

#11707
From: Remy Lebeau (TeamB)
Date: Mon, 19 Jan 2004 21:21
15 lines
1552 bytes
"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: <400c49ac$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4007ff0d@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-19 13:22:07 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4007ff0d@newsgroups.borland.com>
Subject: Re: Launcing a child process from VCL - re-direct STDIO
Date: Mon, 19 Jan 2004 13:21:36 -0800
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <400c49ac$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074547116 67.22.138.253 (19 Jan 2004 13:18:36 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail