Programming Guide:xppguide

Installation and deployment Foundation

A COM/ActiveX component must be installed on the computer before it can be used in an Xbase++ application. COM/ActiveX components usually come as binary files with a specific extension (.OCX). In addition, the component must be registered with the operating system.

The installed COM/ActiveX component can be found in the Windows registry. They are listed under the key HKEY_CLASSES_ROOT in the form ApplicationName.ObjectName.Version.

Installing a COM/ActiveX component

A COM/ActiveX component usually comes as part of an installation package, that should always be used to install the component on a computer. If this is not possible, then all used COM/ActiveX components must be distributed with the Xbase++ application. The required binary files may reside in the folder <WINDOWS>\SYSTEM32. Alternatively, the files can be installed alongside the application they are used with.

Unless a COM/ActiveX component is used by several applications, it is recommended to install the component in the same folder as the Xbase++ application.

Registration of a COM/ActiveX component is taken care of by the utility REGSVR32.EXE which is shipped with the Windows operating system. To register a COM/ActiveX component, the utility must be used as follows:

REGSVR32 <mycomponent.ocx> 

To deregister a COM/ActiveX component prior to removing it from a computer, use REGSVR32 as follows:

REGSVR32 /u <mycomponent.ocx> 


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.