Autor Beitrag
Lemmy
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 792
Erhaltene Danke: 49

Windows 7 / 10; CentOS 7; LinuxMint
Delphi 7-XE10.1, VS 2015
BeitragVerfasst: Do 28.06.07 14:27 
Hi,

ich habe hier eine .NET Assembly die ich in Delphi [2007] nutzen möchte. In der Assembly befindet sich im Grunde ein Panel, das ich auf einem Delphi-Form anzeigen lassen will.

Ich bekomme die Assembly importiert, habe die Klasse, kann die auch als Komponente einfügen, aber das Ding ist über TOleServer von TComponent abgeleitet und nicht von TControl, d.h. das Ding ist zur Laufzeit nicht sichtbar.

Hat jemand so was schon mal gemacht?

Ich habe das Ding jetzt auch im GAC und per RegAsm registriert und dann die tlb nochmal übersetzten lassen... Jetzt ist die Komponente von TOleControl abgeleitet, allerdings kotzt jetzt Delphi beim kompilieren rum, dass er einige Dinger nicht kennt:

ausblenden Delphi-Quelltext
1:
property ContextMenu: IUnknown index 1610743836 read GetIUnknownProp write _SetIUnknownProp;					


da kennt er _setIUnkownProp nicht....

Lemmy
rn22
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70



BeitragVerfasst: Do 28.06.07 22:14 
ich versteh davon zwar nichts, hab aber ein Tutorial gesehen, das dir wahrsch. weiterhilft:
www.dsdt.info/tutorials/assembly/
Lemmy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 792
Erhaltene Danke: 49

Windows 7 / 10; CentOS 7; LinuxMint
Delphi 7-XE10.1, VS 2015
BeitragVerfasst: Fr 29.06.07 07:34 
Hi,

nein, das hilft nicht. Ich will nicht eine Assembly in einer .NET SPrache nutzen, sondern die Komponente in Delphi Win32 quasi als ActiveX einbinden.

Lemmy