multithreading/program execution

I'm trying to have my c++ program run another program during runtime, but I do not want the blocking effect of system("programname"). I don't care about security necessarily because it's just for home use.

I tried looking for other methods to run programs but I didn't quite grasp the articles/forums I found, so can someone please explain the process for me?

The other option would be to multithread and then use system("programname") on the second thread, but I don't know/understand that either. I'm using Windows.

Thanks in advance.
Just use CreateProcess() or ShellExecute() in Windows. Both are non-blocking.
Thanks. I just looked up ShellExecute() and it should do the job nicely.
Topic archived. No new replies allowed.