diff --git a/othersoft/calibration_console/Header_Files/ZZ_Types.h b/othersoft/calibration_console/Header_Files/ZZ_Types.h index 8be8efa..a9e6177 100644 --- a/othersoft/calibration_console/Header_Files/ZZ_Types.h +++ b/othersoft/calibration_console/Header_Files/ZZ_Types.h @@ -2,6 +2,8 @@ //类型说明文件 ////////////////////////////////////////////////////////////////////////// #pragma once +#pragma pack(1)//结构体按照1字节对齐存储 + #include #include @@ -351,4 +353,5 @@ namespace ZZ_MISCDEF QString qstrInterfaceName; }HumitureDeviceInfo; } -}; \ No newline at end of file +}; +#pragma pack()//恢复默认内存对齐(按照8字节) diff --git a/othersoft/calibration_console/Header_Files/calibration.h b/othersoft/calibration_console/Header_Files/calibration.h index 2f65a7b..f667515 100644 --- a/othersoft/calibration_console/Header_Files/calibration.h +++ b/othersoft/calibration_console/Header_Files/calibration.h @@ -1,5 +1,4 @@ #pragma once -#pragma pack(1)//缁撴瀯浣撴寜鐓1瀛楄妭瀵归綈瀛樺偍 #include //#include #include