Article View: borland.public.cppbuilder.nativeapi
Article #10837Re: Reading from a console without using a physical file
From: Michel Leunen
Date: Tue, 09 Mar 2004 20:12
Date: Tue, 09 Mar 2004 20:12
21 lines
1862 bytes
1862 bytes
Jay McVinney wrote: > I need to run a third-party program that is a console application. This > application drops it's output into stdout, just like any other dos utility. > Unfortunately I am not seeing any way to read this output directly without > having to create a physical file using redirection and then going back with > my application and reading that file. I have a sample on my site that shows how to redirect the stdout of a console application to a TMemo. It should not be that hard to customize it to suit your needs: http://www.leunen.com/cbuilder/redirect.html Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, C++BuilderX, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Technical Details
Message-ID:
<404e254d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!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-09 12:24:13 PST Date: Tue, 09 Mar 2004 21:12:52 +0100 From: Michel Leunen <mleu@STOPSPAMskynet.be> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Reading from a console without using a physical file References: <404d3bcd$1@newsgroups.borland.com> In-Reply-To: <404d3bcd$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.240.244.68 Message-ID: <404e254d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1078863181 81.240.244.68 (9 Mar 2004 12:13:01 -0800) Lines: 21 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail