怎样使用WinExec函数,通过IE打开指定的网页?
问题点数:35、回复次数:5Top
1 楼radish()回复于 2000-02-21 21:23:00 得分 10
don't use Winexec,you can use ShellExecute funciton like :
ShellExecute(this->Handle,"Open", "http://www.csdn.net",
NULL, NULL, SW_SHOWNORMAL);
Top
2 楼Firing_Sky(火的天空)回复于 2000-02-21 21:42:00 得分 10
不要用WinExec
要用ShellExecute(),语法如下,具体请查MSDN
HINSTANCE ShellExecute(
HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
Top
3 楼zfming()回复于 2000-02-22 16:33:00 得分 0
为什么不要用WinExec?
Top
4 楼zfming()回复于 2000-02-22 16:51:00 得分 0
提示未定意ShellExecute函数,该include什么文件?
Top
5 楼Firing_Sky(火的天空)回复于 2000-02-22 20:44:00 得分 15
用Winexec只能执行exe文件
用ShellExecute可以用缺省方式打开任意文件。
要包含头文件 shellapi.hTop




