void _FPTerm(lpOldFPSigHandler) | |||||
FARPROC lpOldFPSigHandler; | /* address of exception handler | */ |
The _FPTerm function restores the floating-point exception-handler routine that was in effect when a dynamic-link library (DLL) called the _FPInit function to initialize the floating-point emulator or coprocessor. Only DLLs need to call this function.
lpOldFPSigHandler
Specifies the address of the previous exception handler.
This function does not return a value.
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 it is possible that 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.