Project|Import Type Library
Return to Top  Previous Page  Next Page
From Delphi 5.0 help:

The Import Type Library dialog box displays the type libraries registered on your system so you can add them to your projects. If the registered type libraries contain creatable coclasses, this dialog allows you to install VCL components representing them on the component palette. You can generate Pascal declarations in a .PAS file that let you use these types as though they were native VCL objects.

The top part of the dialog is a list of type libraries that are currently registered and thus available to be imported. This list lets you extract the declarations from an existing control or free-standing type library. You can also conveniently register a new type library from this dialog box so that it is available to be imported.

To add and register a new type library:

1.Click Add. The Register OLE Control dialog box appears.  
2.In the Register OLE Control dialog box, navigate to the disk or network location of the library file you want to add.  
3.Select the new type library. It is automatically registered on your system for Delphi and immediately appears in the list of available libraries in the Import Type Library dialog.  

Add button
Locate a new type library and register it in the Windows Registry, so that it will appear in the list of registered objects available to be imported into Delphi.
Remove button
Remove a registered type library. The library is removed from the Windows Registry and from this list. Warning: Removing type libraries can disable the associated applications.
Class names
Shows all creatable coclasses in the selected type library.
Palette page
Determines on which page of the component palette to add the component(s) listed under Class names when you click Install.
Unit dir name
Shows the name of the directory that contains the unit using this library. Only the path root is shown; no file name appears. The unit name is derived from the internal type library name. Click the Browse button to move up the directory tree.
Search path
Specifies where to look for dependencies when creating a package.
Install button
Creates a new file and adds it to a new or existing package. When you choose Install, an Install dialog lets you specify a new or existing package to be created and installed. This button is grayed out if no component can be created for that type library.
Create Unit button
Creates a file for the type library and adds it to your project.