Article View: borland.public.cppbuilder.nativeapi
Article #10445Re: Console Window in GUI App Acts Differently Outside Debugger
From: Bob Gonder
Date: Thu, 08 Apr 2004 17:17
Date: Thu, 08 Apr 2004 17:17
11 lines
1500 bytes
1500 bytes
James R. Brown wrote: >The following code does not use the VCL. It is used for both GUI and >console apps. It works for console apps from within and outside of the >debugger; however, it only works for GUI apps from within the debugger... > > m_Handle = GetStdHandle(STD_OUTPUT_HANDLE); > if (!m_Handle) m_Handle is ALWAYS true! If it fails, it returns INVALID_HANDLE_VALUE which is -1
Technical Details
Message-ID:
<iq1b70tg2hibaiafqtlpn8965gdjor3n1p@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40742CF5.272A543D@jhuapl.edu> <918970dunp80oqf0houn4gtr4qb78td9e7@4ax.com> <407569BC.BAB4157F@jhuapl.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ca514572bb0f75e3 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-08 10:40:06 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Console Window in GUI App Acts Differently Outside Debugger Date: Thu, 08 Apr 2004 10:17:40 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <iq1b70tg2hibaiafqtlpn8965gdjor3n1p@4ax.com> References: <40742CF5.272A543D@jhuapl.edu> <918970dunp80oqf0houn4gtr4qb78td9e7@4ax.com> <407569BC.BAB4157F@jhuapl.edu> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 4.228.219.229 X-Trace: newsgroups.borland.com 1081444659 4.228.219.229 (8 Apr 2004 10:17:39 -0800) Lines: 13 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail