Traduction en Delphi d'une structure
bonjour,
comment écrire ceci en Delphi :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
typedef struct {
int ObjType; // object type
int AddrHigh; // object address - high byte
int AddrLow; // object address - low byte
int Index; // index address for object arrays
union {
long int I; // object value - integer
double D; // object value - double/single
} Val;
int Exponent; // object value - exponent
int BitNumber; // specific bit number
} KN_OBJ; |
j'ai essayé avec Union, mais je n'y parviens pas.
Merci,
Dany