开发者

Game window application with additional console window

开发者 https://www.devze.com 2023-04-09 23:03 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消