Jump to content
  • Advertisement


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


how to make system calls without multitasking?

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

I am making a call to an external program using system("filename"); the thing is, it waits for the program that it calls to be completed before going on to the next step, and I want it to just go as soon as it calls the program. So I want to know one of two things 1. Is there a way to call it so that it doesn''t wait for the external program to finish? 2. What are "threads" called in c++? (and maybe, could you point me to a good thread tutorial?) Thanks

Share this post

Link to post
Share on other sites
Look into the ShellExecute(...) function. It opens a program or document and returns to the calling app imediately without waiting for the called app to finish. If you need more control / results from the application you''re calling, look into ShellExecuteEx(...)

HINSTANCE ShellExecute(
HWND hwnd,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd

Share this post

Link to post
Share on other sites

  • 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!