cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : Beginners : Opening a Second Console Window
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programm...
Articles
Lounge
Jobs

-

question  Opening a Second Console Window

CheesyBeefy (80)
Is it possible to open a second console window within a program?

Thanks in advance,
CheesyBeefy
|
LacViet (80)
System is evil. hehehe.

system("START CMD");
|
CheesyBeefy (80)
Not necessarily the CMD window, but a second BLANK console window that I can output separate things into as well.
|
LacViet (80)
Hum. I am not exactly sure myself.. hehe...I would probably tackle this problem by creating a second program, and the main would take in some parameter. Then just output that parameter.

Then in the first program, you would just open that program as above with some parameter system("output.exe Hello World");

But I wouldn't bother with that much man. Like we would ever need to open a second CMD window, or program in console. lolz. Just study a little longer then we can goes straight to Win API. hehe. gl
| Last edited on
firedraco (847)
If you are on windows (I think it's windows only but I'm not sure), you could try AllocConsole() and the related functions.
|
Repentinus (21)
But I wouldn't bother with that much man. Like we would ever need to open a second CMD window, or program in console. lolz. Just study a little longer then we can goes straight to Win API. hehe. gl


Some programmers prefer console. And there's a good reason for that.
|
LacViet (80)
Hehehe...I suppose there is a good reason for everything...
|

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2009 - All rights reserved - v2.2
Spotted an error? contact us