Hi Damjan,
From: Damjan Jovanovic
Can you not change the application type to GUI at runtime using MSVCRT's __set_app_type() function? Or does that do something different?
No, unfortunately that won't work for two reasons. First, it only affects how MSVCRT displays error messages (message box versus printing to stderr). Second, since it would be a runtime change there would still be a race condition.
Thanks, Ge.