Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internet constants value
Message
De
01/06/2002 12:36:38
 
 
À
01/06/2002 08:49:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00663784
Message ID:
00663796
Vues:
19
>>what are the values of these constants.
>>#DEFINE INTERNET_FLAG_RELOAD
>>#DEFINE INTERNET_FLAG_KEEP_CONNECTION
>>#DEFINE INTERNET_FLAG_NO_CACHE_WRITE
>>
>>i often check codes from VB forums and i have most of time problems to convert VB hexadecimal values to VFP values.
>>how to make the convertion for these constants values ?
>>
>>Private Const INTERNET_FLAG_RELOAD = &H80000000
>>Private Const INTERNET_FLAG_KEEP_CONNECTION = &H400000
>>Private Const INTERNET_FLAG_NO_CACHE_WRITE = &H4000000
>
>Kouaku,
>&H stands for hexadecimal. VFP equivalant 0x. ie:
>
>Private Const INTERNET_FLAG_RELOAD = &H80000000
>Private Const INTERNET_FLAG_KEEP_CONNECTION = &H400000
>Private Const INTERNET_FLAG_NO_CACHE_WRITE = &H4000000
>
>#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)


>#DEFINE INTERNET_FLAG_KEEP_CONNECTION 0x400000
>#DEFINE INTERNET_FLAG_NO_CACHE_WRITE 0x4000000
>
>Cetin
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform