Building runtime libraries

After you have defined your objects, use the Library painter to build PowerBuilder dynamic libraries (PBDs) or compiled libraries (DLLs). All the libraries accessed in the same PowerBuilder.Application session must be the same type. The reasons for choosing either type, Pcode or compiled machine code, are the same as for building any PowerBuilder application.

Here is a quick overview of what you need to do to build each library in the Library painter.

  1. In the Library painter, select the library name.

  2. Select Library>Build Runtime Library.

  3. Check or clear the Machine Code check box to correspond to your decision about PBDs versus DLLs.

    Other options in the dialog box are not essential to this process. For information about them, click the Help button or see the PowerBuilder User’s Guide.

  4. Click OK to build the library.

  5. Repeat steps 1 to 4 for each library specified in the LibraryList property of PowerBuilder.Application.

  6. Put the resulting PBDs or DLLs in the desired directory. The client application will specify the paths so that the server can locate them.

For more information about building an application in the Project painter, see the PowerBuilder User’s Guide.