Autor Beitrag
kkausp
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77
Erhaltene Danke: 1

W2K, WIN XP, WIN XPe; WIN7
(D1;D2;D5;) D6 Ent.; D2009 Ent.
BeitragVerfasst: Di 23.01.07 14:09 
Beim Importieren einer DLL als Typelibrary unter Delphi 6 werden aus functionen procedure:

Definition in der DLL:

public virtual HRESULT GetImage ( long lIndex , ImageFormat Format , VARIANT * pVal )



wird nach dem Import:


procedure TMyData.GetImage(lIndex: Integer; Format: ImageFormat; out pVal: OleVariant);
begin
DefaultInterface.GetImage(lIndex, Format, pVal);
end;


In HRESULT sollte eigentlich ein errorcode zurückgegeben werden.

Jemand eine Idee?
nivosta
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Di 23.01.07 14:15 
Hi,

ich gehen mal davon aus das bei einer virtual deklaration der Importer probleme hat da die eigentlichen deklaration in einer anderen klasse erfolgt.
kkausp Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 77
Erhaltene Danke: 1

W2K, WIN XP, WIN XPe; WIN7
(D1;D2;D5;) D6 Ent.; D2009 Ent.
BeitragVerfasst: Fr 23.02.07 16:54 
Titel: Einstellungen Environment Options ist die Lösung.
Environment Options->Type Library kann mann verschiedene Einstellungen in dieser Hinsicht auch für den Import externer DLL einstellen.