FoxPro LCK Code Can Access a Math Coprocessor

ID: Q88681

The information in this article applies to:

SUMMARY

The Library Construction Kit (LCK) for version 2.0 of Microsoft FoxPro for MS-DOS can access a math coprocessor if a library is compiled with the /FPI387 switch.

MORE INFORMATION

To allow FoxPro LCK to build a library that accesses a math coprocessor:

1. Purchase the full Watcom C compiler (sold separately).

2. Install the compiler into the same directory structure created by

   the FoxPro LCK.

3. Include FoxPro LCK libraries and the Watcom libraries in the SET
   LIBRARY statement.

4. Compile the library with the /FPI387 switch.

Notes

If you use the /FPI387 switch, you force a calling convention that passes floating-point values in the FPU rather than the normal CPU register/stack conventions.

Unfortunately, RetFloat is NOT compiled with /FPI387, and therefore is not going to find the floating-point value that is being passed to it.

Additional reference words: FoxDos 2.00 KBCategory: kbtool kbprg KBSubcategory:

Last Reviewed: January 5, 1995