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:
In the Library painter, select the library name.
Select Library>Build Runtime Library.
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.
Click OK to build the library.
Move the library to the directory you want it to be registered in.