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:
In PowerBuilder, create a new workspace.
Select the Application icon from the Target page of the New dialog box and name the application loadpbvm.
Select the Custom Class icon from the PB Object page of the New dialog box.
In the Function prototype window, create a function with this signature:
f_mult ( integer arg1, integer arg2 ) returns integer
Save the user object as nvo_mult and close the User Object painter.