Does Windows have its own 'call other .exe' function (C++)

前端 未结 3 2011
孤城傲影
孤城傲影 2021-01-28 13:58

I know in C++ there is a function

system(\"example.exe\");

that runs another program, put it requires the include stdlib.h.

<
相关标签:
3条回答
  • 2021-01-28 14:39

    Check the MSDN page for CreateProcess for more information

    0 讨论(0)
  • 2021-01-28 14:54

    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 ;)

    0 讨论(0)
  • 2021-01-28 14:58

    I think you're looking for CreateProcess?

    0 讨论(0)
提交回复
热议问题