Aditional console

May 24, 2012 at 3:50pm
Again my research has brought me to a certain point, where I can't find any information:

I'd like to create an extra console window(and write to,read from,...), while still having the original console window. Of course when I'm done with that, I'd like to close it. While I'm at it it'd be great to change focus, like the main window would minimize or the new one appeared above the main one.

I've found the methods FreeConsole() function, AllocConsole() function, but as long as the process has a console you can't get a new one.

So did anyone by any chance do this?
May 24, 2012 at 4:40pm
A process in Windows can only have one console. You can give the appearance of more consoles if you spawn new processes that serve as an output for another process. You can communicate between processes using one of the many Inter-Process Communication methods such as TCP/IP, named or anonymous pipes, temp files, shared memory, etc.
May 24, 2012 at 5:49pm
but for multiple processes I'd also need more .exe files right?
May 24, 2012 at 6:20pm
Can be the same exe file executed with different command line switches. It is up to you.
May 24, 2012 at 6:27pm
so...can you give me an example?
May 25, 2012 at 1:03am
Topic archived. No new replies allowed.