Adding pbdom100.pbd to the library search path
The PBDOM classes are implemented in a DLL file, pbdom100.pbx.
To use the classes in a PowerBuilder application, you must place pbdom100.pbx in
the application’s path, and add the pbdom100.pbd file
to the application’s library search path. The PBD acts
as a wrapper for the DLL, enabling the PowerBuilder application
to use the classes in the DLL as though they were PowerBuilder class
user objects.
The pbdom100.pbx and pbdom100.pbd files
are placed in the Shared/PowerBuilder directory
when you install PowerBuilder. When you are building a PBDOM application,
you do not need to copy pbdom100.pbx to another
location, but you do need to deploy it with the application in a
directory in the application’s search path.
The pbdom100.pbd file must be in the
application’s library list. You can use the Template Application
wizard to create the application target and add the PBD file in
the wizard. If you use the Application wizard or have an existing
target, you can add the PBD file to the library list in the target’s
Properties dialog box.
To add pbdom100.pbd to a
new target’s search path:
-
In the New dialog box, select the Template
Application Wizard icon and step through the wizard to the Adjust
Application Library Search Path page. -
Click the Browse (…) button and browse to the SharedPowerBuilder directory.
-
Select PB Dynamic Libraries from the Files of
Type drop-down list, select pbdom100.pbd, and
click Open. -
Complete the wizard.
To add pbdom100.pbd to an
existing target’s search path:
-
Right-click the client target in the System
Tree and select Properties from the pop-up menu. -
Select Browse on the Library List page and browse
to the SharedPowerBuilder directory. -
Select PB Dynamic Libraries from the Files of
Type drop-down list, select pbdom100.pbd, and
close the dialog boxes.
After you add pbdom100.pbd, the PBDOM
objects display in the System Tree: