Windows有自己的“调用其他.exe”函数(C ++)

我知道在C ++中有一个函数

system("example.exe"); 

运行另一个程序,把它要求包括stdlib.h

因为我已经包括'windows.h',在Windows system()函数有一个平等吗?

有CreateProcess运行特定的可执行文件,或者ShellExecute运行程序或打开文档及其关联的程序。

如果可移植到其他平台是任何问题,我会坚持系统。 #including stdlib.h不会杀了你;)

检查MSDN页面的CreateProcess更多信息

我想你正在寻找CreateProcess?