views:

75

answers:

1

I am developing WTL GUI application. I want to print something on console.
How to enable console printing in win32/WTL application.

+2  A: 

Use AllocConsole to attach to a new console. (This will fail if your program is being run from a console window in the first place, but that's ok.) Also look at this page for a fully worked example.

Eric Brown