Well, I started a console window using AllocConsole(), but if I use std::cout<< nothing happens o.o
How can I output stuff from the game window to this console window? Like, if I would press Space, I'd be able to output it onto the console screen?
This is a discussion on couting output to a secondary console window within the C++ Programming forums, part of the General Programming Boards category; Well, I started a console window using AllocConsole(), but if I use std::cout<< nothing happens o.o How can I output ...
Well, I started a console window using AllocConsole(), but if I use std::cout<< nothing happens o.o
How can I output stuff from the game window to this console window? Like, if I would press Space, I'd be able to output it onto the console screen?
Last edited by Akkernight; 01-28-2009 at 05:29 AM.
Currently research OpenGL
You need to get a handle to the console window you've created before you can write to the console. Look up GetStdHandle() on msdn.
Swarvy got advice in this post:
How to get both win32 and command prompt interface in the same application?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.