How to execute another exe from a C++ program in Windows

前端 未结 5 1328
迷失自我
迷失自我 2020-12-10 07:06

I want my C++ program to execute another .exe, in Windows. How would I do this? I am using Visual C++ 2010.

Here is my code

#include \"stdafx.h\"
#in         


        
5条回答
  •  [愿得一人]
    2020-12-10 07:47

    Use the CreateProcess() Function.

    See http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx for details

提交回复
热议问题