How can I redirect stdout to some visible display in a Windows Application?

You need to create pipe (with CreatePipe()), then attach stdout to it’s write end with SetStdHandle(), then you can read from pipe’s read end with ReadFile() and put text you get from there anywhere you like.

Leave a Comment