Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
0x0000000000001
Message
 
 
À
20/11/2006 10:19:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Versions des environnements
Database:
Visual FoxPro
Divers
Thread ID:
01171178
Message ID:
01171191
Vues:
9
Peter,

Usually constants are written out like that so that it's clear which bit is which. Especially across constants that use more than 8 bits, like those for the Messagebox third parameter. Or these:
#define CDS_UPDATEREGISTRY  0x00000001
#define CDS_TEST            0x00000002
#define CDS_FULLSCREEN      0x00000004
#define CDS_GLOBAL          0x00000008
#define CDS_SET_PRIMARY     0x00000010
#define CDS_NORESET         0x10000000
#define CDS_SETRECT         0x20000000
#define CDS_RESET           0x40000000
>
? 0x00000001
>? 0x00001
>? 0x01
>? 0x1
>
>All are 1. However, in the next piece of code the declaration is 0x00000001. Can anyone tell me why? Will 0x1 not do the job?
>
>
#define FILE_ATTRIBUTE_READONLY    0x00000001
>#define FILE_ATTRIBUTE_HIDDEN      0x00000002
>#define FILE_ATTRIBUTE_SYSTEM      0x00000004
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform