🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Reading from a console without using a physical file

#10870
From: Jay McVinney
Date: Fri, 12 Mar 2004 00:44
28 lines
2068 bytes
Thank you very much.  I haven't been able to get here for a bit, but thanks
to both of you, this is exactly what I needed.
"Michel Leunen" <mleu@STOPSPAMskynet.be> wrote in message
news:404e254d@newsgroups.borland.com...
> 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: <405107e7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <404d3bcd$1@newsgroups.borland.com> <404e254d@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-11 17:06:30 PST
Reply-To: "Jay McVinney" <compforce@nospam.hotmail.com>
From: "Jay McVinney" <compforce@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <404d3bcd$1@newsgroups.borland.com> <404e254d@newsgroups.borland.com>
Subject: Re: Reading from a console without using a physical file
Date: Thu, 11 Mar 2004 19:44:33 -0500
Lines: 30
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: 24.196.229.31
Message-ID: <405107e7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079052263 24.196.229.31 (11 Mar 2004 16:44:23 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail