Visual Basic

 

Adding uCalc to your VB application

 

In order to implement uCalc FMP in Visual Basic 5 or 6, copy uCalcVB.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 directory that is in the path.  From the menu, select Project Add Module, and choose uCalcVB.Bas.  Remember not to confuse this file with the ucalcPB.Bas file, which has a similar name and familiar-looking lines of code, but is for PowerBASIC.  Now, the parser is fully ready to perform.

 

 

Demo program

 

The name of the uCalc demo project file to load up in VB is DemoVB.vbp.  The source code in the project demonstrates the essential features, especially as they relate to VB.  DemoVB.Bas contains the callback functions, and DemoVB.Frm contains the main part of the code.

 

 

Remarks

 

There is a separate topic that covers VB.NET support.