Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fault In Module Foxw2600.esl At 0001:222D
Message
From
12/05/2003 13:57:18
 
 
To
10/05/2003 09:07:53
John Manikis
Fox Computer Systems
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00787043
Message ID:
00787430
Views:
18
Your "answer" may be in http://support.microsoft.com/default.aspx?scid=kb;en-us;183522 - "FIX:
Divide by Zero Creates Err with Third-Party Print Drivers". But since FPW can't directly call 32-bit
DLL's you'll need to use CALL32. The CALL32.ZIP file is on Rick Strahl's site at
http://www.west-wind.com/wwfp2pd.htm, and includes the necessary files and some demo code. I've
tried the following (which seems to work):
SET PROCEDURE TO CALL32
IF !("FOXTOOLS" $ SET("LIBRARY"))
   SET LIBRARY TO SYS(2004)+"FOXTOOLS.FLL" ADDITIVE
ENDIF
CLEAR

* Win32 usage
*
*       DECLARE _fpreset IN msvcrt20.dll
*       =_fpreset()

   lhcall32=reg32("_fpreset", "msvcrt20.dll", "")
   lh_fpreset=RegFP("", "L")
   ln_fpreset=callfn(lh_fpreset, lhcall32)
Note: Back when I was using this, I found that while CALL32 works for many 32-bit API calls, others can fail and "hang" the program / workstation - use only when necessary and test on all potential OS platforms.

Rick

>Error:
>
>FoxProw Caused A General Protection Failt In Module Foxw2600.esl At 0001:222D
>
>Does Any One Know Why This Error Comes On When Going To Print On Win2000 Or Win XP Pro, When Printing On LPT Port And Using Okidata 320T Printers.
Previous
Reply
Map
View

Click here to load this message in the networking platform