读书人

怎么用C++启动脚本程序

发布时间: 2012-03-09 21:42:54 作者: rapoo

如何用C++启动脚本程序
如题。
用WinExec不行,总不能用CreateThread 吧。
高人指点一下。

[解决办法]
什么脚本?

CreateProcess
[解决办法]
使用Shell函数
HINSTANCE ShellExecute(HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
Performs an operation on a specified file.
This method allows you to execute any commands in a folder 's shortcut menu or stored in the registry.

读书人网 >C++

热点推荐