Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PrtInfo() causing fatal error -> Fix
Message
De
02/06/2005 08:17:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
01018857
Message ID:
01019309
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform