🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Displaying stdout in dos box

#12330
From: Wim Bekker
Date: Wed, 10 Dec 2003 12:17
13 lines
1481 bytes
Maybe you find your solution in the following:

1. Redirect the output to a pipe handle (pipe Stdout to a handle).
2. Run your console application.
3. Read the output (from the pipe) and display it.
4. Direct the output back to its original.

This works for me. The only problem is reading from the pipe. I cannot run
(part) of the application, read the pipe, run more of the application etc.

If you think this is the answer for you, say so, then I post the code.

Wim
Technical Details
Message-ID: <3fd70dae@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: <3f9fe982@newsgroups.borland.com> <3f9ffb90$1@newsgroups.borland.com> <3fa23451$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e00744b422e64f48
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-10 04:29:42 PST
From: "Wim Bekker" <wim@wimbekker.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f9fe982@newsgroups.borland.com> <3f9ffb90$1@newsgroups.borland.com> <3fa23451$1@newsgroups.borland.com>
Subject: Re: Displaying stdout in dos box
Date: Wed, 10 Dec 2003 13:17:33 +0100
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 212.238.29.217
Message-ID: <3fd70dae@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071058350 212.238.29.217 (10 Dec 2003 04:12:30 -0700)
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