Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Binds to the type descriptions contained within a type library.
Syntax
HRESULT BindType(
[in] LPOLESTR szName,
[in] ULONG lHashVal,
[out] ITypeInfo **ppTInfo,
[out] ITypeComp **ppTComp
);
Parameters
[in] szName
The name to be bound.
[in] lHashVal
The hash value for the name computed by LHashValOfName.
[out] ppTInfo
An ITypeInfo of the type to which the name was bound.
[out] ppTComp
Passes a valid pointer, such as the address of an ITypeComp variable.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
One or more of the arguments is not valid. |
|
Insufficient memory to complete the operation. |
Remarks
Use the function BindType for binding a type name to the ITypeInfo that describes the type. This function is invoked on the ITypeComp that is returned by ITypeLib::GetTypeComp to bind to types defined within that library. It can also be used in the future for binding to nested types.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oaidl.h |