Building the object’s runtime library

After you have defined your object, use the Library painter to build a dynamic library (PBD) or compiled library (DLL). The reasons for choosing either type (Pcode or compiled machine code) are the same as for building any PowerBuilder application.

For more information, see “Compiler basics”.

You might want to use the Library painter to reorganize libraries so that your object and any other objects it instantiates are in a library by themselves. Otherwise, your library will be bigger than it needs to be.

Here is a quick overview of what you need to do to build your 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. Move the library to the directory you want it to be registered in.