Autor Beitrag
ao
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 145

Win XP Prof.
D7 Ent.
BeitragVerfasst: Mo 13.10.03 12:39 
Hallo,

ich hab folgendes Problem bei der Installation der Komponente TEmbeddedWB von Per Lindsø Larsen.
Folgende Fehlermeldung tritt auf, obwohl die Komponente TEmbeddedWB heisst.

ausblenden Quelltext
1:
2:
3:
Registration procedure, EmbeddedWB.Register in package 
c:\programme\delphi7\Projects\Bpl\ao.bpl raised exception class 
EFileError: A class named TWebBrowser already exists.


Kann jemand helfen?

Gruß
Andreas
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Di 14.10.03 12:04 
Hast du den quell-code der compo? ..wenn ja dann zeig mal die Register procedure.

_________________
mfg.
mâximôv
ao Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 145

Win XP Prof.
D7 Ent.
BeitragVerfasst: Di 14.10.03 12:18 
hallo,
so sieht die Register-Procedure aus:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure Register;
begin
    RegisterComponents('MyInternet', [TEmbeddedWB]);
end;

gruß
andreas
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Di 14.10.03 12:25 
Aha...vielleicht ist die klasse 'TWebBrowser' mit in dem package, das du installieren willst, wogegen delphi sich sträubt da sie ja schon in dem delphi eigenen package ist.

Vielleicht kannst du da was mit requiered machen? ...die klasse TWebBrowser muss extern gelinkt sein...vermute ich.

_________________
mfg.
mâximôv
ao Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 145

Win XP Prof.
D7 Ent.
BeitragVerfasst: Di 14.10.03 12:34 
also die einzige stelle an der TWebBrowser in der Unit embeddedwb.pas auftaucht ist folgende:

ausblenden Delphi-Quelltext
1:
TEmbeddedWB = class(TWebbrowser, IDocHostShowUI, IDocHostUIHandler, IDocHostUIHandler2, IDispatch, IServiceProvider {$IFDEF USE_IOLECOMMANDTARGET}, IOleCommandTarget{$ENDIF})					


Es ist zwar bereits eine Komponente namens TWebBrowser installiert, aber warum macht sie Probleme ... :?:

gruß
andreas
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Di 14.10.03 13:25 
Hier mal der auszug aus der OH bezüglich requires:
Zitat:
Die requires-Klausel enthält andere externe Packages, die vom aktuellen Package verwendet werden. Diese Klausel funktioniert wie die uses-Klausel in einer Unit. Ein externes Package, das in der requires-Klausel enthalten ist, wird beim Compilieren automatisch zu jeder Anwendung gelinkt, die sowohl das neue Package als auch eine der Units verwendet, die im externen Package enthalten sind.

Wenn die Unit-Dateien eines Package andere Units referenzieren, die ebenfalls in Packages enthalten sind, sollten diese anderen Packages im requires-Abschnitt des ersten Package angegeben werden. Andernfalls lädt der Compiler die referenzierten Units aus den entsprechenden .dcu-Dateien (Windows und Linux) oder .dpu-Dateien (Linux).

...


Mit anderen worten du musst das package, der TWebBrowser componente, in die requires klausel deines packages aufnehmen :wink: ...dann wird der spass extern gelinkt.


PS: ich glaub das package heist dclie70...bei anderen delphi-versionen halt andere nummer :wink:

_________________
mfg.
mâximôv
ao Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 145

Win XP Prof.
D7 Ent.
BeitragVerfasst: Di 14.10.03 14:50 
hallo maximus,

so gings leider auch nicht ... aber ich hab es jetzt hingekriegt, indem ich im package "dclusr" unter "optionen" und dann "Packages" die "Internet Explorer Controls" gelöscht habe. jetzt habe ich zwar die normale TWebBrowser-Komponente nicht mehr, aber dafür die erweiterte TEmbeddedWB-Komponente. danke nochmal.

gruß
andreas
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Di 14.10.03 15:59 
in meinen augen kann man so keine probleme lösen :? ...aber wenn dich das zufrieden stellt, dann mach halt :twisted:

_________________
mfg.
mâximôv
ao Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 145

Win XP Prof.
D7 Ent.
BeitragVerfasst: Di 14.10.03 16:07 
dann sag mir doch eine bessere lösung, ich weiss keine ...

andreas