Reputation: 38380
What I want to do is something like this:
ConsoleWindow1.Print("1");
ConsoleWindow2.Print("2");
When I run the program, two console windows pop up and one gets printed with 1 and the other gets printed with 2. Is there a simple way of doing this?
Upvotes: 1
Views: 8258
Reputation: 50712
One way I see, to write a console that prints argument given to exe, and write another application that call both with different arguments, I didn't try but may be you can open two by WIN32 functions, see How to Open Console Window in a Win32 Application
Upvotes: 0
Reputation: 11694
For console based application there can be only one console per process. You can start two processes and then do some sort of IPC to coordinate with each other
Upvotes: 1