Article View: borland.public.cppbuilder.nativeapi
Article #8028Re: CreateProcess,DOS,Map Results
From: Eyyub Volkan �ektimur
Date: Wed, 08 Dec 2004 14:27
Date: Wed, 08 Dec 2004 14:27
32 lines
2154 bytes
2154 bytes
Thanks very much , that is the solution... -- ________________________________________ Eyyub Volkan �ektimur Proya Software & Trade Inc. Head of Core Development Department "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:41b5e633$1@newsgroups.borland.com... > > "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr> wrote in message > news:41b5a31f@newsgroups.borland.com... > > > I'm executing an DOS (Console) program with "CreateProcess" , > > my wish is to get the results that have printed to DOS-Console by > > executed program. Is that possible ? > > Use CreatePipe() to create a new pipe and then assign its handle to the > hStdOutput and hStdError members of the STARTUPINFO structure. You also > need to specify the STARTF_USESTDHANDLES flag in the dwFlags member as well. > Then the application calling CreateProcess() can use ReadFile() to read the > console application's output and do whatever it wants with the text. > > Please go to http://www.deja.com and do a search through the archives of > these newsgroups. Sample code has been provided many times before. > > > Gambit > >
Technical Details
Message-ID:
<41b70eb0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!transit-1.news.visi.com!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41b5a31f@newsgroups.borland.com> <41b5e633$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,908334df422d7545 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr> Newsgroups: borland.public.cppbuilder.nativeapi References: <41b5a31f@newsgroups.borland.com> <41b5e633$1@newsgroups.borland.com> Subject: Re: CreateProcess,DOS,Map Results Date: Wed, 8 Dec 2004 16:27:02 +0200 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 213.232.9.2 Message-ID: <41b70eb0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102515888 213.232.9.2 (8 Dec 2004 06:24:48 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!transit-1.news.visi.com!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail