Article View: borland.public.cppbuilder.nativeapi
Article #9913Re: Console window
From: Sky
Date: Sun, 06 Jun 2004 12:37
Date: Sun, 06 Jun 2004 12:37
33 lines
1836 bytes
1836 bytes
Thank you, Remy I just want to use the SetStdHandle() to replace the freopen() when I open the console window of my app. Because the SetStdHandle() is the new version of the freopen() when open a console window of the app. any hint? Sky "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> д����Ϣ���� :40bfe558$1@newsgroups.borland.com... > > "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:
<40c31026$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40bfd918$1@newsgroups.borland.com> <40bfe558$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,e90d6a2624240104 X-Google-Attributes: gid10cc67,public From: "Sky" <akeehuang@163.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40bfd918$1@newsgroups.borland.com> <40bfe558$1@newsgroups.borland.com> Subject: Re: Console window Date: Sun, 6 Jun 2004 20:37:58 +0800 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2739.300 NNTP-Posting-Host: 220.113.187.1 Message-ID: <40c31026$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086525478 220.113.187.1 (6 Jun 2004 05:37:58 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail