oudkaramla
Messages postés107Date d'inscriptionmardi 2 mars 2004StatutMembreDernière intervention 5 juillet 2004
-
24 juin 2004 à 13:06
ShareVB
Messages postés2676Date d'inscriptionvendredi 28 juin 2002StatutMembreDernière intervention13 janvier 2016
-
25 juin 2004 à 18:07
salut tout le monde,
j'ai un problem dans la définition d'une valeure d'un type enumeré et de lui affecter une valeure:
le ty enumeré est le suivant
typedef enum
{
KPDCDataTypeUnknown = 0, // This thing has no type!
KPDCDataTypeBool = 1, // type code for a bool
KPDCDataTypeInt32 = 2, // type code for a 32-bit integer
KPDCDataTypeString = 3, // type code for a string of 8-bit characters
// attrSize will be 0 or (strlen(s)+1)
KPDCDataTypeEnum = 4, // type code for an enum, represented in a 32-bit integer
KPDCDataTypeByteBlock = 5, // type code for a block of bytes.
KPDCDataTypeTime = 6, // type code for a time, seconds since Jan 1, 1970 or delta.
KPDCDataTypeGroupSeparator = 7, // type code for a group separator.
KPDCDataTypeInt32Array = 8, // type code for a 32-bit integer array
KPDCDataTypeInt16Array = 9, // type code for a 16-bit integer array
KPDCDataTypeFloat = 10, // type code for a floating point number
KPDCDataTypeInt8 = 11, // type code for an 8-bit integer
KPDCDataTypeUInt8 = 12, // type code for an unsigned 8-bit integer
KPDCDataTypeInt16 = 13, // type code for a 16-bit integer
KPDCDataTypeUInt16 = 14, // type code for an unsigned 16-bit integer
KPDCDataTypeUInt32 = 15, // type code for an unsigned 32-bit integer
KPDCDataType4CharCode = 16, // type code for a four character code (Mac OSType)
// - same as unsigned long.
KPDCDataTypeUInt16Array = 17, // type code for an unsigned 16-bit integer array
KPDCDataTypeRect = 18, // type code for KPDCRect ( four KPDCInt32 )
KPDCDataTypeFloatArray = 19, // type code for an array of float
KPDCDataTypes_end
} KPDCDataTypes;
moi par exemple je définir un variable valeure de type KPDCDataTypeEnum et de lui affecter la valeur 3 par exemple
comment faire merci