Game window application with additional console window
My previous demo开发者_JS百科 was an XNA project that had a game window, as well as a console window for debugging information, however, the option is either not there or moved in a C++ project. Does anyone know how to enable a console window that will run alongside a game window in VS2010?
You can use AllocConsole
to create a console for you process. Once you do that, you can use std::cout
or, perish the thought, printf
to write to the console.
You can view Console
in WinForms app
with the Visual Studio output window
精彩评论