subsystem:windows and writeln

Adam D. Ruppe destructionator at gmail.com
Fri Nov 16 18:00:08 UTC 2018


On Friday, 16 November 2018 at 17:49:06 UTC, Domain wrote:
> But I cannot control the 3rd library!

Hmm, I see.

So one possibility would be to reopen stdout (and maybe stderr) 
to a different file.

         stdout.reopen("log.txt", "wt");

when you start your program and before you call the library and 
it should no longer error - unless it can't create the file. Then 
you can look at the file if you do need the output.


More information about the Digitalmars-d-learn mailing list