Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PrtInfo() causing fatal error -> Fix
Message
From
02/06/2005 08:17:56
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018857
Message ID:
01019309
Views:
21
Hi Sergey,

>Most likely errors are caused by faulty printer drivers in combination with outdated VFP version. It seems unlikely to me that call to sys(1104) can fix that. Did you try:
>
DECLARE _fpreset IN msvcrt20.dll
>= _fpreset()
>PrtInfo()
>....
>
>>This is a quick-fix/workaround for a problem i've encountered for a while now.

See my message to Borislav on this technique:
http://www.levelextreme.com/wconnect/wc.dll?LevelExtreme~2,15,1019155

Quick summary: _fpreset() is present in all recent versions of the MS Visaul C runtime, so you can use the MS Visual C runtime that you are already distributing with your VFP executable vs. MSVCRT20.DLL. This will save you the hassle of distributing another system file and almost 400K in distribution size. Message above has specifics.

Regards,
Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform