Sign in to follow this  
glPetter3f

multiple command windows

Recommended Posts

Hi I am making a program and I want to have multiple command windows. I am using c++. I also need iostreams to the different windows. Can I just start cmd.exe from my program and somehow retrieve the iostream or can i create the windows from my process?

Share this post


Link to post
Share on other sites
In Windows, a process can only be bound to a single console window at a time. If you want multiple console windows you'll need to have multiple processes running. You can, however, have multiple processes attached to the same console window. A process can attach to the console window of an existing process with AttachConsole() and release its attachment with FreeConsole().

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this