Article View: borland.public.cppbuilder.nativeapi
Article #12517Re: Execute DOS application
From: Bob Gonder
Date: Tue, 09 Dec 2003 23:20
Date: Tue, 09 Dec 2003 23:20
16 lines
1607 bytes
1607 bytes
Remy Lebeau (TeamB) wrote: > >"George" <george@nospam.org> wrote in message > >> StartupInfo.hStdInput = reinterpret_cast <HANDLE> (STD_INPUT_HANDLE); > >That is not the correct way to assign the STDIN handle. If you man to use >the standard handle, then you should be using GetStdHandle() instead: > > StartupInfo.hStdInput = GetStdHandle(STD_INPUT_HANDLE); OTOH, since his original request was to process this dosprog.exe --parameter --test --test2 < file.txt Wouldn't he open file.txt, and pass the handle in hStdInput ?
Technical Details
Message-ID:
<mslctvobfomv7s9bjdv0bkgh8outepmg5q@4ax.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-mailReferences:
<3fd5ac1f$1@newsgroups.borland.com> <3fd5ad82$1@newsgroups.borland.com> <3fd5c289@newsgroups.borland.com> <3fd62e6d$3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,714ec80889168aad X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-09 15:39:27 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Execute DOS application Date: Tue, 09 Dec 2003 15:20:02 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <mslctvobfomv7s9bjdv0bkgh8outepmg5q@4ax.com> References: <3fd5ac1f$1@newsgroups.borland.com> <3fd5ad82$1@newsgroups.borland.com> <3fd5c289@newsgroups.borland.com> <3fd62e6d$3@newsgroups.borland.com> 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: 67.31.166.32 X-Trace: newsgroups.borland.com 1071012005 67.31.166.32 (9 Dec 2003 15:20:05 -0700) Lines: 19 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