I\'m writing a GUI application, using Qt, which links to a third-party DLL that sometimes sends error messages to stderr. I\'d like these error messages to be displayed in a
Does the DLL really write to stderr? Or does it write to GetStdHandle(STD_ERROR_HANDLE) ? The first maps to the second, initially. But with freopen() you merely change the mapping. Anything written to STD_ERROR_HANDLE will still go there.
To redirect everyones error output, you would need SetStdHandle.