FoxPro LCK Code Can Access a Math Coprocessor

Last reviewed: January 5, 1995
Article ID: Q88681
The information in this article applies to:
  • Microsoft FoxPro Library Construction Kit version 2.0

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:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 5, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.