0

My previous demo 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?

Dollarslice
  • 9,917
  • 22
  • 59
  • 87

2 Answers2

4

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.

avakar
  • 32,009
  • 9
  • 68
  • 103
  • `printf` would most certainly be superior to `std::cout` in terms of performance, which would be critical in debugging a game. – rubenvb Oct 03 '11 at 12:29
0

You can view Console in WinForms app with the Visual Studio output window