🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Displaying stdout in dos box

#13163
From: Denville Longhurst
Date: Wed, 29 Oct 2003 16:23
19 lines
1858 bytes
Running a gui app from a command box, I need to display stdout in the cmd
box (in case the app fails to start, then the status messages remain visible
in the cmd box).

I know stdout is getting directed back to the cmd environment because I can
enter APP >TEST and stdout will go to a file named TEST.  I can also use APP
| MORE which has the desired effect except that things get a bit tricky if
the cursor is toward the bottom of the screen and MORE is waiting for ENTER
to be pressed.  I have tried APP >CON which does nothing, and APP >stdout
which again sends to a new file named stdout.

Running a console from within the app using AllocConsole() is no good
because the console is destroyed when the app terminates.

Trawled quite a bit for an answer, but without success.

Thanks,

Denville.
Technical Details
Message-ID: <3f9fe982@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!snoopy.risq.qc.ca!nf3.bellglobal.com!sjc70.webusenet.com!rip!news.webusenet.com!peer01.cox.net!cox.net!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e00744b422e64f48,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-29 08:37:11 PST
From: "Denville Longhurst" <Denville@metco.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Displaying stdout in dos box
Date: Wed, 29 Oct 2003 16:23:33 -0000
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300
NNTP-Posting-Host: 80.0.6.170
Message-ID: <3f9fe982@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067444610 80.0.6.170 (29 Oct 2003 08:23:30 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!snoopy.risq.qc.ca!nf3.bellglobal.com!sjc70.webusenet.com!rip!news.webusenet.com!peer01.cox.net!cox.net!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail