Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top