• Advertisement


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

Need help with a system call on C++

This topic is 5035 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