Article View: borland.public.cppbuilder.nativeapi
Article #13169Redirecting stdout
From: Denville Longhurst
Date: Thu, 23 Oct 2003 08:33
Date: Thu, 23 Oct 2003 08:33
13 lines
1203 bytes
1203 bytes
Hi I need to import some legacy code into a new GUI app. The legacy code makes considerable use of printf() etc. How do I redirect stdout so that I can display it in a TMemo or whatever (display is not a problem, just grabbing the otherwise lost output). It is not really viable to go through the legacy code and change all the printf's. Many thanks, Denville Leeds, England.
Technical Details
Message-ID:
<3f979256$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f5a2ee1e49a6d81b,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-23 01:39:17 PST From: "Denville Longhurst" <Denville@metco.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Redirecting stdout Date: Thu, 23 Oct 2003 08:33:32 -0000 Lines: 15 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: <3f979256$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066898006 80.0.6.170 (23 Oct 2003 01:33:26 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail