Type Building Interfaces

The type building interfaces, ICreateTypeInfo, ICreateTypeInfo2, ICreateTypeLib and ICreateTypeLib2, are used to build tools that automate the process of generating type descriptions and creating type libraries. The MkTypLib utility and the Microsoft Interface Definition Language (MIDL) compiler, for example, use these interfaces to create type libraries. For more information about type libraries, refer to Chapter 8, "Type Libraries and the Object Description Language."

Generally, it is not necessary to write custom implementations of these interfaces. The compilers use the default implementations that are returned by the CreateTypeLib function. To create tools similar to MkTypLib, the default implementations can be called.

Implemented by Used by Header file name Import library name
Oleaut32.dll
(32-bit systems)

Typelib.dll
(16-bit systems)

Applications that expose programmable objects. Oleauto.h

Dispatch.h

Oleaut32.lib

Typelib.lib