Linking to Borland Developer Studio 2006 (VCL for Delphi Win32)

These instructions can also be used for linking ADS-OCX in Borland Delphi 2005. The differences compared with "Borland Delphi 2006" or "Delphi XE2" are only marginal.

Step 1

First a Delphi unit has to be derived from the ActiveX Control. Select "Import component..." under "Component"

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 1:

Step 2

The Component Wizard opens. Select "VCL for Delphi Win32" and confirm with "Next>>".

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 2:

Step 3

In next dialog select "Import ActiveX Control" and click on "Next>>".

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 3:

Step 4

Select the required component from the list of registered ActiveX Controls (AdsOcx OLE Control Module). If the component does not appear in the list of registered elements, it has to be registered and integrated via the "Add" button. Then click on "Next".

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 4:

Step 5

In next Wizard window specify the VCL pallete page and the directory for the newly created unit (Default: C:\program files\borland\bds\4.0\Imports\ ).
Confirm with "Next".

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 5:

Step 6

In the next step a unit for the ActiveX Component is generated. Confirm with "Finish".

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 6:

The generated unit is opened automatically for verification:

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 7:

Step 7

In the next step a new package has to be generated. Click on "File -> New -> Package" in the main menu.

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 8:

Step 8

The previously generated unit must now be inserted into the newly created package.
Click the right mouse button in the project manager and select the entry "Package1.bpl" and in the context menu that opens "Add".

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 9:

Step 9

In the "Add" window enter the storage location for the unit previously generated for the ActiveX Component (Default: C:\program files\borland\bds\4.0\Imports\ADSOCXLib_TLB.pas).

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 10:

Step 10

For compiling the package right-click on "Package1.bpl" and select "Compile" in the context menu.

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 11:

Step 11

After the new package has been compiled select "Install" in the context menu.

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 12:

The installation is now complete. The following message appears:

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 13:

After the installation

The ActiveX Component appears in the specified category when a new "VCL Forms Application - Delphi for Win32" is created, for example.

Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 14:
Linking to Borland Developer Studio 2006 (VCL for Delphi Win32) 15: