_FPInit

Syntax

void far * _FPInit()

This function initializes the Windows floating-point emulator library (WIN87EM.DLL) or floating-point coprocessor and sets up a default floating-point exception-handler routine. Only DLLs need to call this function.

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 coprocesoor 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 co-processor. Before returning control to the calling task, the DLL must call the _FPTerm function to restore the previous exception handler.