Creating a PowerBuilder object to be called from C++

To keep the code for this example simple, create an application with one custom class user object that has one function. The function returns the product of two integers:

  1. In PowerBuilder, create a new workspace.

  2. Select the Application icon from the Target page of the New dialog box and name the application loadpbvm.

  3. Select the Custom Class icon from the PB Object page of the New dialog box.

  4. In the Function prototype window, create a function with this signature:

    f_mult ( integer arg1, integer arg2 )  returns integer
    
  5. Save the user object as nvo_mult and close the User Object painter.