且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

c++执行外部程序

更新时间:2021-08-09 11:51:13

#include "stdafx.h"
#include <windows.h>
#include <shellapi.h>//ShellExecute 要引用的库

int main(int argc, _TCHAR* argv[])
{    
    ShellExecute(NULL,NULL,_T("E:\\App\\test\\test\\bin\\Debug\\test.exe"),NULL,NULL,SW_SHOW);//双斜杠
    return 0;



本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/archive/2012/10/24/2736551.html,如需转载请自行联系原作者