当前位置:K88软件开发文章中心编程全书编程全书01 → 文章内容

在PB程序中启动默认浏览器的方法

减小字体 增大字体 作者:佚名  来源:翔宇亭IT乐园  发布时间:2019-1-3 0:17:49

:2010-05-18 19:01:00

本文使用两种方法实现在PB中启动浏览器的方法。

第一种方法:

//打开浏览器
string url
inet iinet_base
url = "http://pbsite.yeah.net"
GetContextService("Internet", iinet_base)
iinet_base.HyperlinkToURL(url)
 

第二种方法:

//打开浏览器
string ls_ferryman,ls_null,ls_oper
ls_ferryman = "http://pbsite.yeah.net/"
setnull(ls_null)
ls_oper = "open"
ShellExecute(handle(parent),ls_oper,ls_ferryman,ls_null,ls_null,0)
 

 翔宇亭IT乐园提醒您:本文来自于互联网,版权归原作者和各发布网站所有,本站收集这些文章仅供学习参考之用。任何人都不能将这些文章用于商业或者其他目的。(www.k88.net)


在PB程序中启动默认浏览器的方法