嗨,如果是Windows上的開發(MFC or .NET),DWORD定義如下
DWORD
A 32-bit unsigned integer. The range is 0 through 4294967295 decimal.
This type is declared in IntSafe.h as follows:
typedef unsigned long DWORD;
但這是在32位CPU上,如果是其他架構的MCU/MPU則要跟著調整(例如51)
利用typedef調整DWORD型別,確保是32 Bit=4 Byte的大小
以上希望對您有用