ICreateTypeLib2 inherits from ICreateTypeLib, and has four member functions. The ICreateTypeInfo instance returned from ICreateTypeLib can be accessed through a QueryInterface() call to ICreateTypeInfo2.
At a Glance
Header file: | Oaidl.h |
Windows CE versions: | 2.0 and later |
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.
Example
interface ICreateTypeInfo2 : ICreateTypeInfo
Method | Description |
ICreateTypeLib2::DeleteTypeInfo | Deletes a specified type information from the type library. |
ICreateTypeLib2::SetName | Sets the name of the type library. |
ICreateTypeLib2::SetCustData | Sets a value to custom data. |
ICreateTypeLib2::SetHelpStringContext | Sets the Help string context number. |
ICreateTypeLib2::SetHelpStringDll | Sets the dynamic-link library (DLL) name to be used for Help string lookup for localization purposes. |