On Monday 23 February 2009 8:39:22 am Erich Hoover wrote:
My suggestion (maybe this wasn't clear) was to normally output the diagnostic information to the console, but if the console is not available (if wine was launched from a desktop icon, for example) then to pop up with a dialog.
That's what the isatty() function call is for, to tell if stderr is writing to a console or not. Though I'm not sure it'd be a big problem to output to the console and popup a message box, with an option to suppress the message box via a registry option, or something.