Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE question
Message
From
01/02/1999 12:18:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00182536
Message ID:
00182549
Views:
8
>I have numerous users with HP Deskjet printers. Found workaround here on UT by adding the following code:
>
>declare _fpreset in msvcrt20
>and then the following after each print or preview:
>=_fpreset()
>
>I have a #include devInclude.h in all my forms & programs:
>Can I add the following?
>#DEFINE HP_ON declare _fpreset in msvcrt20
>#DEFINE HP_OFF =_fpreset()
>
>Then go to my programs that call reports and add:
>HP_ON
>report form blah blah blah
>HP_OFF
>
>Will that work? I don't have HP printers to test with. Sure will help if they fix it, then I can simply fix my defines to
>#DEFINE HP_ON .t.
>#DEFINE HP_OFF .t.
>
>Robert
Robert,
It could work as long as defines are in scope during compilation at all places where you use HP_ON and HP_Off. Instead having HP_ON/OFF as functions might be better ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform