In the FormulaCalculatorLib.zip file you will find three test application for the FormulaCalculatorLib.dll with source code.
There are VC_LoadTime, VC_RunTime and VBTest projects. VC_LoadTime and VC_RunTime are MSVC++ projects and
have the same functionality. The only difference is that VC_LoadTime demonstrates how to use FormulaCalculatorLib as load-time library
(using .lib and .h files) while VC_RunTime shows how to load and use FormulaCalculatorLib at run time
(using LoadLibrary and GetProcAddress Windows API functions).
VBTest demonstrates how to use FormulaCalculatorLib in VisualBasic applications.
VC_LoadTime and VC_RunTime applications have two important menu options:
1.Insert->Formula (long calculation) allows the user to write formula in dialog window and get
sequence of statements and result after closing the dialog with OK button.
2.Insert->Formula (short calculation) allows the user to write formula in dialog window and get
only the result (without sequence of calculation statements) after closing the dialog with OK button.
If some undefined variables are found, the user will be requested to define them in dialog window.
The difference between options demonstrates usage of FormulaParserLib and FormulaCalculatorLib with
FormulaParserLib_GetStatement, FormulaCalculatorLib_SetStatement functionality in the
"long calculation" and usage only FormulaCalculatorLibFormulaCalculatorLib_SetFormula,
FormulaCalculatorLib_Calculate functions in "short calculation".
VBTest application allows user to input formula and press Calculate button to view the calculation result in message box.