有人可以告訴我在哪裏,我在轉換犯錯誤:C到德爾福轉換
C:
typedef struct _REGISTRY_EVENT {
REG_NOTIFY_CLASS eventType;
TIME_FIELDS time;
HANDLE processId;
ULONG dataType;
ULONG dataLengthB;
ULONG registryPathLengthB;
/* Contains path and optionally data */
UCHAR registryData[];
} REGISTRY_EVENT, * PREGISTRY_EVENT;
德爾福:
_Registry_Event = record
EventType: REG_NOTIFY_CLASS;
Time: TIME_FIELDS;
processID: THandle;
DataType: ULONG;
DataLength: ULONG;
registryPathLength: ULONG;
registryData: array of UCHAR;
end;
從C代碼的sizeof(REGISTRY_EVENT) = 36
from delphi code sizeof(REGISTRY_EVENT)= 40
在此先感謝
博揚
訂貨號用4個空間,以便它得到語法highlighing和等寬字體的代碼類型。這樣就容易多了。 – zz1433 2010-07-31 18:34:23