_FPInit

2.x

  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.

Parameters

This function has no parameters.

Return Value

The return value is a pointer to the previous floating-point exception handler.

Comments

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.

See Also

_FPTerm