Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "LoadTypeLib" in [All]

oleaut32

.
Summary
The LoadTypeLib function loads a type library from a file. It optionally registers a type library when no file is specified. (see Notes)
.

static extern int LoadTypeLib(string fileName, out ITypeLib typeLib);

.

Declare Unicode Function LoadTypeLib Lib "oleaut32.dll" (ByVal szFile As String, ByRef TPpTypeLib As System.Runtime.InteropServices.ComTypes.ITypeLib) As Integer

.

Declare Function LoadTypeLib Lib "oleaut32.dll" (szFile As Byte, pTLB As Object) As Long

.

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.

.
Documentation
.

Ensure that you use the same parameter type in LoadTypeLib in either language.

.

    Private Declare Unicode Function LoadTypeLib Lib "oleaut32.dll" (ByVal TLpszModule As String, ByRef TPpTypeLib As ComTypes.ITypeLib2) As Integer

.

            nResult = LoadTypeLib(strFile, TLB)


 
Access PInvoke.net directly from VS: