Saturday, February 21, 2009

Is there a way to redirect stdout to my application window?

This tip comes courtesy of Claire Sylvestre :

You can redirect the child process' output to your application through
pipes. You create a pipe, pass its output end to the CreateProcess function,
and you read the child's output from the pipe's input end into a buffer. See
doc on CreatePipe and Anonymous Pipe Overview.

Author : Bob Moore

0 nhận xét:

Post a Comment