Other Compilers

 

Specific provisions were made for compilers such as C#, Delphi, PowerBASIC, Visual Basic 6, Visual Basic.NET, and Visual C++.  However, it can work with other 32-bit Windows compilers as well. Here are some things to consider:

 

·         The DLL exports routines using the StdCall convention.

·         All arguments are passed by value.

·         String arguments should be marshaled as single-byte Ansi (which might go under names such as Ansi, AnsiString, AnsiBStr, etc.).

·         Aside from strings, most other arguments are 32-bit integers; you may use signed or unsigned integers; it doesn’t matter either way.

·         ucReturn and ucSetVariableValue have double precision and extended precision versions.  If your compiler supports extended precision, use that, otherwise use the double precision version.

·         See the uCalcFMP\Include directory for sample include files that can serve as a model for creating an include file for your compiler.

·         The list of exported routines can be found in the uCalcFMP\Include\Exports.txt file.

·         See the uCalc\Include\ReadMe.txt file for information on how to auto-generate the include file for your compiler instead of preparing it manually.