The PowerBuilder window ActiveX controls are not installed on your computer if you select the Typical setup type when you install PowerBuilder. You can install the ActiveX controls by running a custom installation of PowerBuilder and checking the Web Plugins box on the Select Components page. Click the Change button on that page to select the plug-ins and controls you want to install.
This section describes setup tasks that you may need to perform after installing the window ActiveX.
The PowerBuilder window ActiveX files (both the secure and unsecure versions) are installed in the system directory of your operating system, for example C:\Windows\System32.
For you to use the PowerBuilder window ActiveX for development, it must be registered on your machine. You can check to see if it is registered by using the PowerBuilder Browser. Open the Browser, select the OLE tab, and expand the OLE Custom Controls item. If the ActiveX is registered, it is listed as the PowerBuilder Window Control or PowerBuilder Secure Window Control in the tree view. Expand the Class Information node to verify that the current version of the control is registered.
If the ActiveX is not registered on your machine, you can register it from within PowerBuilder or by using the MS-DOS regsvr32 command.
To register the ActiveX within PowerBuilder:
From within PowerBuilder, open a new or existing application, then open a new or existing window.
Select Insert>Control>OLE from the menu.
The Insert Object dialog displays.
Select the Insert Control tab and click the Register New button.
The Browse dialog displays.
Browse to the location of the OCX in the System directory, select either PBRX105.OCX or PBRXS105.OCX, and click Open.
If the OCX fails to register, you receive an error message.
To register the ActiveX using the MS-DOS regsvr32 command:
Run the MS-DOS regsvr32.exe command with the complete path to the OCX as an argument. For example:
regsvr32.exe C:\Windows\System32\pbrx105.ocx