🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: redirect stdin

#12150
From: Arthur Jelsma
Date: Tue, 23 Dec 2003 15:38
21 lines
1640 bytes
Michel Leunen <mleu@STOPSPAMskynet.be> wrote:
>Arthur Jelsma wrote:
>
>> Using BCB5 Pro on Windows 2000, I have built an app that
>> creates a console window and redirects stdout to my code.
>> Now I want to redirect stdin. Do I need to do another CreatePipe
>> for my stdin handle?
>
>Yes. And if your console app uses stderr, you have to create a pipe for 
>it as well.
>
>Michel
>-- 
>----------------------------------------
>Michel Leunen
>mailto:michel@leunen.com
>C++Builder, C++BuilderX, BCC5.5.1 Web site:
>http://www.leunen.com/
>----------------------------------------
>
Technical Details
Message-ID: <3fe86f6c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fe785e9$1@newsgroups.borland.com> <3fe82715@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ba86b8c6dd456663
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-23 08:52:37 PST
From: "Arthur Jelsma" <jelsma@wapa.gov>
Sender: "Arthur Jelsma" <jelsma@wapa.gov>
Reply-To: "Arthur Jelsma" <jelsma@wapa.gov>
Subject: Re: redirect stdin
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 207.109.125.201     
References: <3fe785e9$1@newsgroups.borland.com> <3fe82715@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3fe86f6c$1@newsgroups.borland.com>
Date: 23 Dec 2003 08:38:04 -0700
X-Trace: newsgroups.borland.com 1072197484 207.105.83.66 (23 Dec 2003 08:38:04 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail