Creating a Type Library

This article has two sections:
See the readme.

What are type libraries?

A type library is a file (or part of a file) that gives Automation clients information about server objectsÆ properties and methods. Properties have data types; methods often return values and accept parameters. The client requires information about the data types in order to bind to the server object type.

Return to the top of this article.


Using MkTypLib

MKTYPLIB.EXE is a tool that creates type libraries from Object Description Language (ODL) files.

To create a type library:

  1. Create a command window.
    From the Start menu, select Programs.
    Select MS-DOS Prompt or Command Prompt, depending on the version of the operating system.
  2. In the command window, include the Developer Studio BIN directory in the path.
    This directory is c:\msdev\BIN, where c:\msdev is the directory where you installed Visual J++.
       set path=%path%;c:\msdev\bin
  3. In the command window, navigate to the sample directory.
  4. In the command window, run MkTypLib.
       mktyplib euclid.odl /nocpp

Return to the top of this article.