I read a blog posting about this exact topic a few months ago.
The Old New Thing: How do I write a program that can be run either as a console or a GUI application?
He gives a link to a page explaining some of the techniques used to 'fake it'.
How to make an application as both GUI and Console application?
Not sure that this will be of much help...
Edit: AllocConsole() function, perhaps?
The Old New Thing: How do I write a program that can be run either as a console or a GUI application?
You can't, but you can try to fake it.
He gives a link to a page explaining some of the techniques used to 'fake it'.
How to make an application as both GUI and Console application?
Not sure that this will be of much help...
Edit: AllocConsole() function, perhaps?