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?
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 06: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:
http://cboard.cprogramming.com/showt...t=AllocConsole
--
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.