🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: redirecting stdout to a windows control

#12271
From: Michel Leunen
Date: Sat, 13 Dec 2003 20:53
20 lines
1817 bytes
mike wrote:

>  i also wanted to know how to redirect stdout to an edit control. the only
> way i could think of was to redirect stdout to a file then display the file
> in the edit control. however this is not real time and i need it to be.
> 
> i am not using borland c++ builder, but rather the win32 api to do things. i
> am compiling it with the free command line compiler.

I have a sample on my site explaining how to redirerct stdout to a TMemo 
using pipes but you should be able to to change this to suit your needs:
http://www.leunen.com/cbuilder/redirect.html

Michel
-- 
----------------------------------------
Michel Leunen
mailto:michel@leunen.com
http://www.leunen.com/cbuilder/
----------------------------------------
Technical Details
Message-ID: <3fdb7c4a@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!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3fdb560f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,543b6d19d57ccf61
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-13 12:54:08 PST
Date: Sat, 13 Dec 2003 21:53:23 +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: redirecting stdout to a windows control
References: <3fdb560f$1@newsgroups.borland.com>
In-Reply-To: <3fdb560f$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.240.73.66
Message-ID: <3fdb7c4a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071348810 81.240.73.66 (13 Dec 2003 12:53:30 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail