请各位帮忙看一看, 为什么这个功能在win 98 下能实现,在win2000下却不能?
我做了一个菜单,其中有个内容是访问公司的主页
我是这样做的:
选择菜单Declare->Global External Functions 然后输入:
FUNCTION ulong ShellExecute(ulong hwnd,ref string lpOperation,ref string lpFile,ref string lpParameters,ref string lpDirectory,ulong nShowCmd) LIBRARY "shell32.dll" ALIAS FOR "ShellExecuteA"
在对应的菜单的click()事件中这么写
string lpOperation,lpFile,lpParameters,lpDirectory
setnull(lpOperation)
setnull(lpParameters)
setnull(lpDirectory)
lpFile="http://www.sina.com.cn" //要连接的地址
ShellExecute(handle(this),lpOperation,lpFile,lpParameters,lpDirectory,0)
请问有人知道为什么在win98下能实现功能, 在win2000下就没有任何的反应了?