Skip to content

How to do a std::system call to launch another console app? #109

Answered by lucadesogus
lucadesogus asked this question in Q&A
Discussion options

You must be logged in to vote

it's not the case.
Seems that calling the suspend() before the std::system and resume() after allows the new console to stay open.

TApplication::suspend();
std::system("start  app.exe");
TApplication::resume();

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lucadesogus
Comment options

Answer selected by magiblot
@magiblot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants