Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Service Packs, Print Drivers & Runtime
Message
From
26/05/2001 19:31:51
 
 
To
22/05/2001 16:58:27
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00510081
Message ID:
00511849
Views:
15
>Hello,
>
>I have installed the latest Visual Studio Service Pack (6 I think?) to try solve some HP Printer driver nightmares (blue screens) some of my clients are experiencing with my VFP6 app. There didn't appear to be much about redistribution in the Readme files, and I can't install the Service Pack on the clients machine because he only has VFP6 runtime. Does anyone know if I need to do more than recompile my application and upload it to a client in order to try to resolve the printer driver issue(s) ?
>

You need to redistribute the new runtimes for VFP6 SP5 to get the fix added internally to VFP; recompiling without sending out the new runtimes does not solve the problem. The runtime changes VFP's behavior, which solves the main problem with HP's drivers, a failure to reset the floating point processor before returning from the driver. Alternatively, you can call the _fpreset() API call after every invocation of the Windows Printer interface, which will force the reset, and it applies to all versions of the VFP runtime, including VFP 3 and 5, but requires making the call every time the printer driver is invoked, including previewing without actually printing or printing to a file with the HP driver active:
* Declaration must occur once in main program. Note - case-sensitive
DECLARE _fpreset IN MSVCRT.DLL && or other versions like MSVCRT40.DLL
* after each printer call:
=_fpreset()
>I am also suprised that this is not a more common topic of discussion. I have encountered at least half a dozen HP Printers that crash the entire system if you try printing twice in VFP6 using the driver that came with the printer. It seems to happen often in my little app (mainly HP with printers) and the only fix I have discovered is to use generic HP drivers from the Windows CD. But this usually happens after the user has crashed my app over and over trying to print, and finally contacts me for a solution.
>

It's in the FAQ, and has been beaten to death in the past. There's an entry in the MSKB if you searched Microsoft's support site for VFP that outlines the _fpreset() solution going back a number of years.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform