首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

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

2012-03-09 
如何用C++启动脚本程序如题。用WinExec不行,总不能用CreateThread吧。高人指点一下。[解决办法]什么脚本?Crea

如何用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.

热点排行