舒尔耳机推荐:如何编程调用exe文件。

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/30 01:56:37
编程调用exe文件,C、VB、MatLab都可以。最好给出具体例子。

#include <stdlib.h>
int main()
{
system("C:\\some.exe");/*字符串中不能有空格*/
return 0;
}

C调用exe

看看MSDN吧,,ShellExecute 或者 ShellExecuteE,以及 CreateProcess ..等..

VB中用 shell

呵呵,晚了一步
说明一下吧
1.是c语言里调用方式
2.是MS的API
适用任何WINDOWS开发语言,如vb,delphi,c++,c#...