Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internet constants value
Message
From
01/06/2002 17:09:02
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00663784
Message ID:
00663816
Views:
15
>>>
>>>#DEFINE INTERNET_FLAG_RELOAD 0x80000000
>>
>>this really should be recast explicitly if you're passing it as an INTEGER using BITOR(); VFP handles this as a positive value, while the API type INTEGER or LONG is actually a signed 32-bit integer, so that 0x80000000 is the maximum possible integer positive value. You can accomplish this by wrapping the INTEGER expression with BITOR(0,your potentially integer value) as follows:
>>
>>nMyIntegerArg = BITOR(INTERNET_FLAG_RELOAD + INTERNET_FLAG_NO_CACHE_WRITE,0)
>
>Hi Ed,
>
>Isn't 0x7FFFFFFF the max positive value in signed 32-bit integer?

Yep. And 0xFFFFFFFF (-1) is 0x80000000 + 0x7FFFFFFF. Go figure...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform