🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: redirect stdin

#12147
From: Michel Leunen
Date: Tue, 23 Dec 2003 11:29
18 lines
1541 bytes
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: <3fe82715@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-mail
References: <3fe785e9$1@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 03:52:23 PST
Date: Tue, 23 Dec 2003 12:29:18 +0100
From: Michel Leunen <mleu@STOPSPAMskynet.be>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: redirect stdin
References: <3fe785e9$1@newsgroups.borland.com>
In-Reply-To: <3fe785e9$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.240.242.196
Message-ID: <3fe82715@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1072178965 81.240.242.196 (23 Dec 2003 03:29:25 -0700)
Lines: 19
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