Does Windows have its own function to call another .exe (C ++)

I know that in C ++ there is a function

system("example.exe");

which launches another program, you need to enable it stdlib.h.

Since I already include "windows.h", is there a function equivalent system()in Windows?

0
source share
3 answers

There is CreateProcess to run a specific executable or ShellExecute to run programs or open documents with its associated program.

If portability to other platforms is generally a problem, I would stick to the system. #include stdlib.h will not kill you;)

+15
+4

I think you are looking for CreateProcess?

0
source

Source: https://habr.com/ru/post/1718331/


All Articles