I am developing WTL GUI application. I want to print something on console.
How to enable console printin开发者_C百科g in win32/WTL application.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.
精彩评论