C++结构体如何在C#中使用?
struct TUserTable
{
unsigned int TotalMessageLong; //4
unsigned int NewMessageCounter; //4
unsigned int MessageCounter; //4
char UserPathHead[USER_PATH_HEAD_SIZE]; /12
unsigned int tempPathEnd; //
unsigned long Data; //data 2007/01/01
struct TMessage * head, * end;
struct TMessage * current, * temp, *currentTemp;
} ;
struct TMessage
{
//char UserPathEnd[USER_PATH_HEAD_SIZE];
char DataBegin[15]; //开始录制时间 16
unsigned int BoxId; //主叫物理号 4
unsigned int BoxIdB; //被叫物理号 4
char DTMFID[DTMFIDSIZE]; //主叫号码 20
char DTMFIDB[DTMFIDSIZE]; //被叫号码 20
unsigned int UserPathEnd; //对应的语音序号 4
unsigned int MessageTimeCounter; //语音长度 4
Word16 NewMessageMark :1;
//Word16 TempMessageMark :1;
struct TMessage * prev;
struct TMessage * next; // 总 12
} ;
如题!
------解决方案--------------------我都是写个专门的类,然后把各个字段解析后都拼接起来的
不过好像看到过有c#能够二进制序列化,,新手帮顶