Well, I have a game window, on a DirectX based game engine, but I'd like the program to start a console window too, that I can use to pass stuff too, to check stuff or whatever I wanna do :P
Printable View
Well, I have a game window, on a DirectX based game engine, but I'd like the program to start a console window too, that I can use to pass stuff too, to check stuff or whatever I wanna do :P
You can use the AllocConsole() API to create a console, but if you're running full-screen, nobody will see it.
It's in windowed mode, and it's mostly just for me, so that I can learn how to do it, and prolly find it useful ^^
Ok, I read abit about this AllocConsole(), now do I need windows.h for it, or wincon.h ?
windows.h. Most of the WinAPI headers are included by windows.h, and the order matters, so you should never include them directly.