Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

_fpreset().prg not found

Status
Not open for further replies.

shangrilla

Programmer
Joined
Nov 21, 2001
Messages
360
Location
US
I have declared this in my main.prg

Declare _fpreset in MSVCRT40.dll

but on and off I get this error saying _fpreset().prg not found.

In my code i use it like:

=_fpreset()
if repFormat = 'text'
.....
endif
if repFormat = 'word'
....
endif
if repFormat = 'pdf'
...
endif
=_fpreset()

Is there anything else I need to add.
 
Declare _fpreset in MSVCRT40.dll

Declare (value fo function return... INTGER)
_fpreset in C:\WINDOWS\SYSTEM\MSVCRT40.dll

ALSO are you sure the function is correct in its name. captiols is importen in the name

what are you using MSVCRT40.DLL for??

Attitude is Everything
 
so it should be all caps like =_FPRESET()

what are you using MSVCRT40.DLL for??

I read in this form that -fpreset() helps to release printer hang up problems and avoid printer freeze problems. MyApp generates reports, one after another so i am using this as a precaution.

 
Shangrilla

Depending in what version of MSVCRT you have, that is the one that should be declared


DECLARE _fpreset in MSVCRT && I use this for an NT4 (Terminal Server)

DECLARE _fpreset in MSVCRT20 && For a wondows 95 system

Do a search on your system, and you may find a few, just use the lates one (the highest number).

Danceman

=_fpreset()

Is use to cleanup a printer's floating point (specially HP printers that crash *C5* in the midddle of a print job)
 
shangrilla

Since this has been asked before I wrote it in an faq (in case your forget the syntax. The call IS case sentive). faq185-2265
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top