🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: MS-DOS Prompt

#16582
From: Remy Lebeau (TeamB)
Date: Wed, 07 May 2003 22:28
17 lines
1482 bytes
"CapStick" <lol@ljones81.fsnet.co.uk> wrote in message
news:3eb982de@newsgroups.borland.com...

> Assumming that  these calls would indeed have
> to be aimed at an MS-DOS PROMPT .
>
> Is ShellExecute where i should be looking.

Use CreateProcess() instead.  It will allow you to provide your own handles
for STDIN, STDOUT, and STDERR of the spawned process.  That way, your
application can directly send/receive text to/from the DOS app itself.  No
actual DOS window is needed.  Look at CreatePipe(), Read/WriteFile() and
GetStdHandle() for working with the handles.


Gambit
Technical Details
Message-ID: <3eb9881b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eb982de@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,78dd79fc0e3ddbeb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-07 15:34:11 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eb982de@newsgroups.borland.com>
Subject: Re: MS-DOS Prompt
Date: Wed, 7 May 2003 15:28:21 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3eb9881b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052346395 207.175.226.26 (7 May 2003 15:26:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail