can you open a second window?

so here's what i want to do. I have a window using winapi showing up and I want a basic command prompt window to also show up that i can write too. it's for a game and the command prompt window is where debug text will be displayed. is there a way to do that? and if so how would i print to that window? could i some how open up a new command prompt window, get the handle of it, and set cout to print to that some how? thanks in advanced.
You open the console with AllocConsole and write to it with WriteConsole. See http://msdn.microsoft.com/en-us/library/ms682073(VS.85).aspx
You can set cin and cout to print to that console. I'm not sure how.. Google gave me http://www.halcyon.com/~ast/dload/guicon.htm
thanks, AllocConsole worked, do you know how i'd get a handle to that window to use in WriteConsole?
nevermind. i got it!
Topic archived. No new replies allowed.