怎样使用WinExec函数,通过IE打开指定的网页?

zfming 2000-02-21 09:18:00
...全文
324 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
Firing_Sky 2000-02-22
  • 打赏
  • 举报
回复
用Winexec只能执行exe文件
用ShellExecute可以用缺省方式打开任意文件。
要包含头文件 shellapi.h
zfming 2000-02-22
  • 打赏
  • 举报
回复
提示未定意ShellExecute函数,该include什么文件?
zfming 2000-02-22
  • 打赏
  • 举报
回复
为什么不要用WinExec?
Firing_Sky 2000-02-21
  • 打赏
  • 举报
回复
不要用WinExec
要用ShellExecute(),语法如下,具体请查MSDN

HINSTANCE ShellExecute(
HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);

radish 2000-02-21
  • 打赏
  • 举报
回复
don't use Winexec,you can use ShellExecute funciton like :
ShellExecute(this->Handle,"Open", "http://www.csdn.net",
NULL, NULL, SW_SHOWNORMAL);

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧