Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

hbkpuertorico

Need help with a system call on C++

This topic is 5302 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I''m just wondering if there is a way to call an executable in c++ show it for 5 seconds and then close it. This a part of the code system("prog1.exe"); sleep(5000); //I would like to close it I''m trying to use ShellExecute(...) but when compiling it says ShellExecute undeclare identyfier. Can anybody explain how can i do what it want to do. Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!