Article View: borland.public.cppbuilder.nativeapi
Article #10827Re: Reading from a console without using a physical file
From: Remy Lebeau (TeamB)
Date: Tue, 09 Mar 2004 04:17
Date: Tue, 09 Mar 2004 04:17
14 lines
1405 bytes
1405 bytes
"Jay McVinney" <compforce@hotmail.com> wrote in message news:404d3bcd$1@newsgroups.borland.com... > I suppose my question is "How do you call a console > application and retrieve the output without using file > redirection?". Use CreateProcess() when running the program. You can provide your own STDIN/OUT/ERR handles, creating them with CreatePipe(), and then use ReadFile() to read the pipe(s) into your own memory buffers as needed. Gambit
Technical Details
Message-ID:
<404d4359$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<404d3bcd$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2baf93b15a7cd73f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-08 20:09:47 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <404d3bcd$1@newsgroups.borland.com> Subject: Re: Reading from a console without using a physical file Date: Mon, 8 Mar 2004 20:17:50 -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.138.253 Message-ID: <404d4359$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1078805337 67.22.138.253 (8 Mar 2004 20:08:57 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail