Sign in to follow this  
Dookie

Starting another program within a program (easy question)

Recommended Posts

Hello! I'm trying to write a frontend for my games, and don't know how to start another program from within a program. Basically I'm writing a DialogBox that has buttons in it, and I want a game to execute when one of the buttons are pushed. Would any of you guys tell me what the CPP command is for executing a program? Thanks in advance for the help!

Share this post


Link to post
Share on other sites
You can use the system() function, but OS specific functions tend to be more useful. For example, on Windows you might want to use CreateProcess() or ShellExecute() instead.

Share this post


Link to post
Share on other sites
Karanos, CPP = C Plus Plus

SiCrane, thanks for the info! I'll research those commands and see which would best suit my game loader.

Thanks again!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this