A type library is a file or part of a file that describes the type of one or more ActiveX objects. Type libraries do not store objects; they store type information. By accessing a type library, applications and browsers can determine the characteristics of an object, such as the interfaces supported by the object and the names and addresses of the members of each interface. A member can also be invoked through a type library. For details about the interfaces, refer to Chapter 9, "Type Description Interfaces."
When ActiveX objects are exposed, you should create a type library to make objects easily accessible to other developers. The simplest way to do this is to describe objects in an Object Description Language file (.odl), and then compile the file using the MIDL compiler (preferred) or the MkTypLib utility, as described in Chapter 8, "Type Libraries and the Object Description Language."
For information about the MIDL compiler, refer to the Microsoft Interface Definition Language Programmer's Guide and Reference in the Win32 Software Development Kit (SDK) section of the Microsoft Developer's Network (MSDN).