Open more than one console in one progam.

Hello everyone,
I am creating a console based application which needs to be dual tasking, which prompts me to share a single console for the GUI console based and inputs from the user.
I want to know if there is a mechanism through I can open more than one command prompt so that I would use efficiently both of them.

Furthermore, I would need also to know how to control on which to print and on which not to be printed.

Is there such a thing?

I am using Visual Studio 2012 Ultimate on a Windows 8.1 Professional PC.
I am using Visual Studio 2012 Ultimate on a Windows 8.1 Professional PC.

No there isn't. On the Windows platform a process belongs to the console, so it can only ever use up to one instance of a console window at a time.

You can sort of fake what you are trying to do with two processes that communicate though some IPC mechanism like RPC or shared memory. This will eliminate the complication of knowing which window you want to output to, so that's a bonus.
Topic archived. No new replies allowed.