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 5129 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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!