IE工具条的问题...

Slash 2000-08-23 01:45:00
现在许多软件都把快捷方式加在IE的工具条中,点击后会执行相应的应用程序,象蚂蚁,词霸等,这个功能我已经实现,我的问题是,金山卓越的IE快捷方式却能连接到自己的主页,就是说它提供了一个超级链接,我也想实现相同的功能,该怎么做?
...全文
109 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Slash 2000-08-29
  • 打赏
  • 举报
回复
不是这个意思,在注册表中怎么可能执行C的代码!
radish 2000-08-25
  • 打赏
  • 举报
回复
你能把你的代码给我发一个吗,连到网站,执行
HINSTANCE RtnValue = ShellExecute(this->Handle,"Open", "http:www.1.com",
NULL, NULL, SW_SHOWNORMAL);
switch((int)RtnValue)
{ // 处理各种错理
case 0:
ShowMessage("The operating system is out of memory or resources.");
break;
case ERROR_BAD_FORMAT:
ShowMessage( "The .EXE file is invalid(non-Win32 .EXE or error in .EXE image");
break;
case SE_ERR_ACCESSDENIED:
ShowMessage( "The operating systemdenied access to the specified file.");
break;
case
SE_ERR_ASSOCINCOMPLETE: ShowMessage( "The filename association is incomplete or invalid.");
break;
case SE_ERR_DDEBUSY:
ShowMessage( "The DDE transaction could not be completed because other DDE transactions were being processed.");
break;
case SE_ERR_DDEFAIL:
ShowMessage( "The DDE transaction failed.");
break;
case SE_ERR_DDETIMEOUT:
ShowMessage( "The DDE transaction could not be completed because the request timed out.");
break;
case SE_ERR_DLLNOTFOUND: ShowMessage( "The specified dynamic-link library was not found.");
break;
case SE_ERR_FNF:
ShowMessage( "The specified file was not found.");
break;
case SE_ERR_NOASSOC:
ShowMessage( "There is no application associated with the given filename extension.");
break;
case SE_ERR_OOM:
ShowMessage( "There was not enough memory to complete the operation.");
break;
case SE_ERR_PNF:
ShowMessage( "The specified path was not found.");
break;
case SE_ERR_SHARE:
ShowMessage( "A sharing violation occurred.");
break;
default :
if ((int)RtnValue<32)
ShowMessage( "Unknown Error in ShellExecte.");
break;
}

13,822

社区成员

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

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