🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by CapStick Wed, 07 May 2003 22:06
MS-DOS Prompt
#16580
Author: CapStick
Date: Wed, 07 May 2003 22:06
26 lines
1449 bytes
I am using WIN32 API
Free Borland Compiler.

I would like to send calls to compile link etc to
an MS-DOS box direct from a window app.

I would also like to retrieve Error Info as would normally be shown in a
MS-DOS BOX

Assumming that  these calls would indeed have to be aimed at an MS-DOS
PROMPT .

Is ShellExecute(
where i should be looking.

Could someone please point me in the right direction on this one.






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 10/04/2003
Re: MS-DOS Prompt
#16582
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads