PowerBASIC
Adding uCalc to your PB application
In order to implement uCalc FMP in PowerBASIC (PB/Win or PB/CC), simply copy uCalcPB.Bas to your project directory (or an appropriate include directory). Then place the uCalc DLL files either in the Windows System directory, your project directory, or any suitable DLL directory that is in the path. After that, place the following line in your source code:
#INCLUDE "uCalcPB.Bas"
and you're all set to go.
Demo program
A user-friendly form-based demo for PB/Win is found in a file named DemoPB.Bas. The source code in that file demonstrates the essential features, especially as they relate to PowerBASIC.
Remarks
Because of how easy it is to program in PowerBASIC, and because of its flexible use of pointers, it is particularly well suited for creating NativeCall callback routines for uCalc. Details for NativeCall are beyond the scope of uCalc FMP. Advanced users should look into uCalc Language Builder for more.
In the PowerBASIC help file, the phrase callback function is mainly associated with dialogs and controls. However, in uCalc, that phrase is not related to dialogs, controls, or Windows events. Under uCalc, a callback is a function in your source that is attached to a function definition in uCalc. It can also be an error handling routine that is invoked whenever an error is raised.
Regarding VB examples
Examples in this help file are mostly for VB. PB is sufficiently close that separate PB examples are not included. Differences to note are as follows:
New or Enhanced