Skip to main content
gamedev.net
🔒 Locked

Running programs from within c++ code

Started by Stiffler 2 replies 350+ views
Original Post
Stiffler
Stiffler
Hi, I'm using c++ (on windows) to create a presentation for a state stlp competition for my high school, but i need the ability to run other programs that i have created without stopping the presentation program. I can run another program with the "system" command but this waits for the program to exit before mine continues, is there a way to run something without this happening... Thanks a lot.
~Mark Schadler
SiCrane
SiCrane
You may want to try the CreateProcess() or ShellExecute() Windows API functions.
Stiffler
Stiffler
Thanks a lot for the fast reply, the CreateProcess() command works perfectly. I love this place :).
~Mark Schadler
DreamGhost
DreamGhost
I use ShellExecute() its the old way but works just as good as CreateProcess()

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.