This should do it

function LoadTypeLibrary(const ModuleName: string): ITypeLib; (From ComServ
unit)
begin
  OleCheck(LoadTypeLib(PWideChar(WideString(ModuleName)), Result));
end;

Now you have access to the type library info in the DLL.

Myles.

-----Original Message-----
From: Matthew Evans [mailto:[EMAIL PROTECTED]
Sent: Thursday, 20 March 2003 2:49 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Re :Type Lib Question


Essentially what I want is to get 'Object.Plugin' from the dll. So I can
get the interface from CreateOLEobject('Object.Plugin'). Since I want it
so the user can register plugin just by selecting the ActiveX dll they
wish to try to register. Currently searching for a nice simple answer :]
If only there were such things.
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to