I have application that has to write to console. Also I call function from dll that writes to stdout too. Now I want to have separate output window to get all output from dll there. (So I will have 2 console windows: one for client app, one for dll) How to make it? I use windows+mingw
Share
You can’t.
stdoutis a single file handle and if both your application code and the dll are writing to it, they’re going to go to the same place no matter what you do.Your best options would be to either: