>I am trying to use the following dll (in development area of FoxPro).
>
>I issue the following commands in my (set) environment program file, but FoxPro doesn't like it. Can anyone tell me how to declare this library?
>
>
>DECLARE _fpreset IN msvcrt20.dll
>SET PROCEDURE TO msvcrt20.dll
Shawn,
Simply:
DECLARE _fpreset IN msvcrt20.dll
will be sufficient. The function takes no parameters and does not return a value. If you're using this to deal with problems related to HP printer drivers leaving the FPU in the wrong state (as far was whether the driver or calling application catches an error), look at MS KB article Q183522. It gives the full details.
George
Ubi caritas et amor, deus ibi est