摘要: 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)] ... 阅读全文
posted @ 2013-03-02 10:45 杂草 阅读(11493) 评论(4) 推荐(2) 编辑