Article View: borland.public.cppbuilder.nativeapi
Article #15086Re: How catch the output of a dos software?
From: Remy Lebeau (TeamB)
Date: Sat, 19 Jul 2003 21:47
Date: Sat, 19 Jul 2003 21:47
18 lines
1665 bytes
1665 bytes
"Mauro Italy" <mauro.rolly@libero.it> wrote in message news:3f17a43f@newsgroups.borland.com... > I remember that may be possible to catch the ouput > of a software that write in a dos windows. I remember > some about to redirect the output and the input also.. > > But I do not remember how to do it! If you are spawning the DOS app yourself programmable, then use CreateProcess() for that. It allows you to provide your own STDIN, STDOUT, and STDERR handles for the spawned process. You can use CreatePipe() for that, and then use Read/Write() file for reading output from the DOS app and sending data to it as needed. Gambit
Technical Details
Message-ID:
<3f19bb22$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!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f17a43f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7e8f3e0aa516de60 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-19 15:12:09 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f17a43f@newsgroups.borland.com> Subject: Re: How catch the output of a dos software? Date: Sat, 19 Jul 2003 14:47:16 -0700 Lines: 20 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.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f19bb22$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058650914 207.175.226.26 (19 Jul 2003 14:41:54 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail