|
-
April 16th, 2003, 03:53 PM
#1
console stdout captured only at prog end
I am trying to make a gui application that hides a console application that uses menu. In order to do that, I want to capture stdout and replace it by a pipe and replace stin by a pipe. I tried the following sollution :
Using CreateProcess with
StartupInfo.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
StartupInfo.hStdOutput = StdOutWrite;
The problem with this solution is that I get all of the output only at the ending of the console application (I can't get the output byte by byte as it is sent to the screen).
An other thing to say is that the console app, I didn't write it bye my self (I can't change it)
Does someone know why ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|