我寫了一個C的Enum的delphi數字你能回答我,我哪裏可能有一個錯誤? 有什麼不對嗎?將C Enum轉換爲delphi?
C:
typedef enum {
AttributeStandardInformation = 0x10,
AttributeAttributeList = 0x20,
AttributeFileName = 0x30,
AttributeObjectId = 0x40,
AttributeSecurityDescriptor = 0x50,
AttributeVolumeName = 0x60,
AttributeVolumeInformation = 0x70,
AttributeData = 0x80,
AttributeIndexRoot = 0x90,
AttributeIndexAllocation = 0xA0,
AttributeBitmap = 0xB0,
AttributeReparsePoint = 0xC0,
AttributeEAInformation = 0xD0,
AttributeEA = 0xE0,
AttributePropertySet = 0xF0,
AttributeLoggedUtilityStream = 0x100
} ATTRIBUTE_TYPE
並轉換的Delphi枚舉:
ATTRIBUTE_TYPE=(AttributeStandardInformation = $10,
AttributeAttributeList = $20,
AttributeFileName = $30,
AttributeObjectId = $40,
AttributeSecurityDescriptor = $50,
AttributeVolumeName = $60,
AttributeVolumeInformation = $70,
AttributeData = $80,
//AttributeData1 = $0, // has a problem
AttributeIndexRoot = $90,
AttributeIndexAllocation = $A0,
AttributeBitmap = $B0,
AttributeReparsePoint = $C0,
AttributeEAInformation = $D0,
AttributeEA = $E0,
AttributePropertySet = $F0,
AttributeLoggedUtilityStream = $100,
);
至少最後一個','必須被刪除。 – 2010-11-15 13:54:14
是什麼讓你覺得你犯了一個錯誤?描述你有什麼問題。 – 2010-11-15 15:05:49