PB9中通过网址(域名)获取IP的方法(二)

2014-11-23 22:54:19 · 作者: · 浏览: 31
( this, "destructor" )
call super::destroy
end on

程序中这样调用即可:
[cpp]
n_cst_ip ln
string ls_dsn = 'www.baidu.com',ls[]
if ln.of_getdnsip(ls_dsn, ls) then
long i
for i = 1 to upperbound(ls)
messagebox('提示', '域名【' + ls_dsn + '】对应的IP地址(' + string(i) + ')为:~r~n~r~n' + ls[i])
next
end if

摘自 yyoinge的专栏