Article View: borland.public.cppbuilder.nativeapi
Article #13136Re: Intercepting stdio output
From: Remy Lebeau (TeamB)
Date: Tue, 28 Oct 2003 17:32
Date: Tue, 28 Oct 2003 17:32
14 lines
1502 bytes
1502 bytes
"Sten Larsson" <s_t_enX@Xs_ten_l.com> wrote in message news:gtaspvkdedn109r42nbva7nl34d8h7pm0a@4ax.com... > I'm starting a console app from my bcb VCL app - and I > have researched ShellExecute() without finding what I want. That is because ShellExecute() does not support what you want. Use CreateProcess() instead. It allows you to provide your own STDIN/OUT/ERR handles for the new process to use. You can use CreatePipe() to specify the STDOUT handle (and GetStdHandle() for the others), and then use ReadFile() to read the output as needed. Gambit
Technical Details
Message-ID:
<3f9ea77e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<gtaspvkdedn109r42nbva7nl34d8h7pm0a@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,16cd82df590bb170 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-28 09:39:51 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <gtaspvkdedn109r42nbva7nl34d8h7pm0a@4ax.com> Subject: Re: Intercepting stdio output Date: Tue, 28 Oct 2003 09:32:18 -0800 Lines: 16 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.137.75 Message-ID: <3f9ea77e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067362174 67.22.137.75 (28 Oct 2003 09:29:34 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail