RAD Studio
ContentsIndex
PreviousUpNext
Creating a New Type Library

You may want to create a type library that is independent of a particular COM object. For example, you might want to define a type library that contains type definitions that you use in several other type libraries. You can then create a type library of basic definitions and add it to the uses page of other type libraries. 

You can also create a type library for an object that is not yet implemented. Once the type library contains the interface definition, you can use the COM object wizard to generate a CoClass and implementation.

To create a new type library

  1. Choose FileNewOther to open the New Items dialog box.
  2. Choose the ActiveX folder under Delphi Projects
  3. Select the Type Library icon in the right pane.
  4. Choose OK. Enter a name for the type library.
  5. Continue by adding elements to your type library.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!