Bob Moore's Coding Tips

10. 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.

Back to tip list