Share via


ICreateTypeLib2:ICreateTypeLib

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
ICreateTypeLib2::DeleteTypeInfo This method deletes specified type information from the type library.
ICreateTypeLib2::SetCustData This method sets a value to custom data.
ICreateTypeLib2::SetHelpStringContext This method sets the Help string context number.
ICreateTypeLib2::SetHelpStringDll This method sets the dynamic-link library (DLL) name to be used for Help string lookup for localization purposes.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Oaidl.h, Oaidl.idl.
Link Library: Oleaut32.lib, Uuid.lib.

See Also

Automation Interfaces | ICreateTypeInfo | ICreateTypeInfo::LayOut | ICreateTypeInfo2 | ICreateTypeLib | ITypeInfo | IUnknown | IUnknown::QueryInterface

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.