Rick
Thu Sep 16 07:35:51 CDT 2004
If this is an FPW application, your "answer" may be in =
http://support.microsoft.com/default.aspx?scid=3Dkb;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
* =3D_fpreset()
lhcall32=3Dreg32("_fpreset", "msvcrt20.dll", "")
lh_fpreset=3DRegFP("", "L")
ln_fpreset=3Dcallfn(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
"dwally" <dwally@discussions.microsoft.com> wrote in message =
news:B7B74270-974D-4191-B2E3-8EB47284807A@microsoft.com...
> I'm having trouble with HP printers. I'm running foxpro 2.6a..=20
>=20
> REPORT FORM < > TO PRINTER PROMPT
> REPORT FORM < > PREVIEW
>=20
> The problem is occuring always running under terminal services, and=20
> intermittently on a conventional windows NT domain.
> Other printer ok.. only HP.
>=20
> Can somebody help me.. Thanks! =20
> wdennys