L
Luca Bart
Dear all,
I have a struct in C++:
typedef struct{
char Command[4];
short a;
}PACKET;
I have to send by UDP and C++ command is:
UDP->SendBuffer((char*)&Data,sizeof(PACKET),sizeof(PACKET));
where data is a PACKET Data=new PACKET; and I put something in that
fields.
What's the C# for (char*)&Data ? I tried to make Data as a Class and
Data.ToString() but I think it's not that.
Thank you very much
Luca
I have a struct in C++:
typedef struct{
char Command[4];
short a;
}PACKET;
I have to send by UDP and C++ command is:
UDP->SendBuffer((char*)&Data,sizeof(PACKET),sizeof(PACKET));
where data is a PACKET Data=new PACKET; and I put something in that
fields.
What's the C# for (char*)&Data ? I tried to make Data as a Class and
Data.ToString() but I think it's not that.
Thank you very much
Luca