摘要:
C++结构体定义:struct DeviceInfo{ char szDeviceName[DEVICE_NAME_LEN]; char szMACAddress[MAC_ADDRESS_LEN]; char szDeviceIP[DEVICE_IP_LEN];};C#结构体的定义: [StructLayout(LayoutKind.Sequential)] public struct DeviceInfo { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 50)] ... 阅读全文