@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The LoadTypeLib function loads a type library from a file. It optionally registers a type library when no file is specified. (see Notes) !!!!C# Signature: [DllImport("oleaut32.dll", CharSet=CharSet.Unicode, ExactSpelling=true )] static extern int LoadTypeLib(string fileName, out ITypeLib typeLib); !!!!VB.Net Signatures: Declare Unicode Function LoadTypeLib Lib "oleaut32.dll" (ByVal szFile As String, ByRef TPpTypeLib As System.Runtime.InteropServices.ComTypes.ITypeLib) As Integer !!!!VB 6 Signature: Declare Function LoadTypeLib Lib "oleaut32.dll" (szFile As Byte, pTLB As Object) As Long !!!!User-Defined Types: None. !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: In VB.Net you can substitute System.Runtime.InteropServices.ComTypes.ITypeLib2@msdn or System.Runtime.InteropServices.UCOMITypeLib@msdn for System.Runtime.InteropServices.ComTypes.ITypeLib@msdn, defined in mscorlib.dll. Note that in v2.0 (Whidbey) of the .NET Framework, the System.Runtime.InteropServices.UCOMITypeLib interface has been deprecated in favor of System.Runtime.InteropServices.ComTypes.ITypeLib. For backward compatibility, LoadTypeLib will register the type library if the path is not specified in the szFile parameter. LoadTypeLib will not register the type library if the path of the type library is specified. It is recommended that RegisterTypeLib be used to register a type library. !!!!Tips & Tricks: Please add some! !!!!Sample Code: (See UnRegisterTypeLib for VB.Net sample code.) Documentation: LoadTypeLib@msdn on MSDN (http://msdn2.microsoft.com/en-us/library/ms221027(VS.90).aspx)
Edit oleaut32.LoadTypeLib
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.