to jsxjd:
非常感谢你的帮助,不过你的程序:
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
if InternetCheckConnection('http://www.china.com',1,0) then
showmessage('ok')
else
showmessage('no')
end;
在我的电脑上运行会出现下面的错误提示:
Error
Project Project1.exe raised exception class
EAccessViolation with message 'Access violation at
address BFF7BA62 in module 'KERNEL32.DLL'. Read of
address FFFFFFFF'. Process stopped. Use Step or Run
to continue.
OK
Error
Project Project1.exe raised exception class
EAccessViolation with message 'Access violation at
address 76451F62 in module 'WININET.DLL'. Read of
address FFFFFFFF'. Process stopped. Use Step or Run
to continue.
OK
实在没有办法,我又用DFW中的全文检索进行搜索,结果想不到在
http://www.delphibbs.com/delphibbs/dispq.asp?lid=938978
中找到了答案。呵,真是天意弄人呀!自己栽在了自己的手里!