ICreateTypeLib2
A version of this page is also available for
4/8/2010
ICreateTypeLib2 inherits from ICreateTypeLib, and has four member functions. The ICreateTypeInfo instance returned from ICreateTypeLib can be accessed through a IUnknown::QueryInterface call to ICreateTypeInfo2.
The ICreateTypeInfo2 interface derives from ICreateTypeInfo, and adds methods for deleting items that have been added through ICreateTypeInfo.
The ICreateTypeInfo::LayOut method provides a way for the creator of the type information to check for any errors. A call to QueryInterface can be made to the ICreateTypeInfo instance at any time for its ITypeInfo interface. Calling any of the methods in the ITypeInfo interface that require layout information lays out the type information automatically.
Methods
The following table shows the methods for this interface in the order that the compiler calls the methods. Like all COM interfaces, this interface inherits the methods for the IUnknown interface. This interface also inherits the methods for the ICreateTypeLib interface.
Method | Description |
---|---|
This method deletes specified type information from the type library. |
|
This method sets a value to custom data. |
|
This method sets the Help string context number. |
|
This method sets the dynamic-link library (DLL) name to be used for Help string lookup for localization purposes. |
Requirements
Header | oaidl.h, oaidl.idl |
Library | oleaut32.lib, uuid.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
Automation Interfaces
ICreateTypeInfo
ICreateTypeInfo::LayOut
ICreateTypeInfo2
ICreateTypeLib
ITypeInfo
IUnknown
IUnknown::QueryInterface