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 the docs for CreatePipe and Anonymous Pipe Overview.