请问各位大哥,我在调用这个函数CreateOleObject时,怎么编译出错?谢谢了!
//以下这段代码,运行后出现错误
procedure TForm1.Button3Click(Sender: TObject);
var
App:Variant;
begin
App:=CreateOleObject('InternetExplorer.Application');
App.Navigate(edit2.text);
App.Visible:=true;
end;
//运行后的错误提示
[错误] Unit1.pas(70): Undeclared identifier: 'CreateOleObject'
[致命错误] Project1.dpr(5): Could not compile used unit 'Unit1.pas'