Does Windows have its own 'call other .exe' function (C++)
-
13-09-2019 - |
Question
I know in C++ there is a function
system("example.exe");
that runs another program, put it requires the include stdlib.h
.
Because I am already including 'windows.h', is there an equivilant to the system()
function in Windows?
Solution
There is CreateProcess to run a specific executable, or ShellExecute to run programs or open documents with their associated program.
If portability to other platforms is any issue at all, I'd stick with system. #including stdlib.h won't kill you ;)
OTHER TIPS
Check the MSDN page for CreateProcess for more information
I think you're looking for CreateProcess?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow