🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Console window

#9906
From: Remy Lebeau (TeamB)
Date: Fri, 04 Jun 2004 02:54
17 lines
1343 bytes
"Sky" <huangc@motic.com> wrote in message
news:40bfd918$1@newsgroups.borland.com...

> I have used the freopen() associate the console window,
> but how to use the SetStdHandle() to redirect the STDOUT

What exactly are you trying to accomplish in the first place?

> if I replace the freopen() with SetStdHandle()
> SetStdHandle(STD_OUTPUT_HANDLE, ?);
> what's data should be set for the second parameter?

That depends on where you want the output to go in the first place.


Gambit
Technical Details
Message-ID: <40bfe558$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40bfd918$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e90d6a2624240104
X-Google-Attributes: gid10cc67,public
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40bfd918$1@newsgroups.borland.com>
Subject: Re: Console window
Date: Thu, 3 Jun 2004 19:54:15 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 67.22.135.163
Message-ID: <40bfe558$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1086317912 67.22.135.163 (3 Jun 2004 19:58:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail