How to use LoadTypeLib?

  • Thread starter Thread starter Alan
  • Start date Start date
A

Alan

Hi all,
I want to read all information from one type library in one COM, such as
"VBScript.dll". I find that in the namespace "System.Enterprise.Internal",
the Publish class has one method "LoadTypeLib" for my use, but it's private,
and i can't access it at all.

Any useful idea will be appreciated!

Thanks.

Alan
 
Alan,

You can declare it yourself

[DllImport("oleaut32.dll", CharSet=CharSet.Unicode,PreserveSig=false)]
static extern UCOMITypeLib LoadTypeLib(string szFile);



Mattias
 
Back
Top