Jump to content
  • Advertisement
Sign in to follow this  
glPetter3f

multiple command windows

This topic is 3871 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!