procedure TForm1.GotoURL(sURL:String);
begin
with dde do
begin
ServiceApplication:='C:\Program Files\Internet Explorer\IEXPLORE.EXE';
SetLink('IE','打开WWW');
RequestData(sURL+',,0XFFFFFFFF,0X3,,,') ;
CloseLink;
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
GotoURL('http://localhost//index.htm');
end;
end.
浙公网安备 33010602011771号