LPVOID _FPInit(void) |
The _FPInit function initializes the Windows floating-point–emulation library (WIN87EM.DLL) or floating-point coprocessor and sets up a default floating-point exception-handler routine. Only dynamic-link libraries (DLLs) need to call this function.
This function has no parameters.
The return value is a pointer to the previous floating-point exception handler.
A DLL must ensure that the floating-point emulator or coprocessor has been initialized before making any function calls that use floating-point arithmetic. If a task that does not initialize the floating-point emulator or coprocessor can call the DLL, or if the task's floating-point exception handler does not handle floating-point exceptions appropriately for the DLL, the DLL must call the _FPInit function to initialize the emulator or coprocessor. Before returning control to the calling task, the DLL must call the _FPTerm function to restore the previous exception handler.