请教Delphi7下如何安装以及使用GeckoBrowser控件。下载了如下文件并安装;
显示安装成功,如下图:
代码如下:unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, GeckoBrowser, StdCtrls, GeckoSimpleProfile;type
TForm1 = class(TForm)
Edit1: TEdit;
Button1: TButton;
GeckoBrowser1: TGeckoBrowser;
GeckoSimpleProfile1: TGeckoSimpleProfile;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
GeckoBrowser1.LoadURI(Edit1.Text);
end;end.
但是F9运行,提示如下图:
我的系统是XP
请教各位前辈,GeckoBrowser如何安装和使用
显示安装成功,如下图:
代码如下:unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, GeckoBrowser, StdCtrls, GeckoSimpleProfile;type
TForm1 = class(TForm)
Edit1: TEdit;
Button1: TButton;
GeckoBrowser1: TGeckoBrowser;
GeckoSimpleProfile1: TGeckoSimpleProfile;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
GeckoBrowser1.LoadURI(Edit1.Text);
end;end.
但是F9运行,提示如下图:
我的系统是XP
请教各位前辈,GeckoBrowser如何安装和使用
解决方案 »
- 如何执行多条SQL语句取值
- 我如何在一个控件创建的时候去改变它的大小呢?请指点一下!谢谢!
- 有福大家享!!!
- 在AdoQuery中执行Insert时出错!!!
- 可以生成一张表,它的每一列都是通过SELECT……from (other table)语句生成的吗?
- 哪位大侠用Async Professional做过发送传真的软件呀?
- 如何将一个文件另存为文本文件,急!!!
- 在DELPHI的帮助文件里面怎么找不到,什么函数会抛出异常,什么函数不会抛出异常。
- 请教:初次使用spcomm控件,在接受事件中传递的是一个指针,如何从指针得到字符串?
- 哪里有下载实现PING功能的控件或详细介绍?
- 工业图形、信号灯图形控件
- 求大家帮帮忙 大恩不言谢
GeckoBrowser1.LoadURI('about:blank');
2、在GRE的安装目录里C:\Program Files\Common Files\mozilla.org\GRE\1.7.13_2006041421(这是我的安装目录)检查是否有xul.dll;
3、如果没有xul.dll,去官网下载xulrunner-1.9.1.18.en-US.win32.sdk,从xulrunner-1.9.1.18.en-US.win32.sdk\xulrunner-sdk\bin里将xul.dll拷进去。
上面的解决办法还是会报错,但程序能运行起来。