G
Guest
Hi,
I have a structure written in C++ / VC.NET and would like to convert that
into CSharp. I am not getting any success. Can any of you please help me
out. Following is the structure in C++:
struct R_OMNI_LINK_MESSAGE
{
unsigned char MessageLength;
union {
unsigned char Data[255];
struct {
unsigned char MessageType;
union {
struct /* olmNAME_DATA (8 bit) */ {
unsigned char ItemType8;
unsigned char ItemNumber8;
unsigned char ItemName8[16];
};
struct /* olmNAME_DATA (16 bit) */ {
unsigned char ItemType16;
unsigned char ItemNumber16MSB;
unsigned char ItemNumber16LSB;
unsigned char ItemName16[16];
};
}
}
}
Thanks for all the help in advance.
Yatin Patel.
I have a structure written in C++ / VC.NET and would like to convert that
into CSharp. I am not getting any success. Can any of you please help me
out. Following is the structure in C++:
struct R_OMNI_LINK_MESSAGE
{
unsigned char MessageLength;
union {
unsigned char Data[255];
struct {
unsigned char MessageType;
union {
struct /* olmNAME_DATA (8 bit) */ {
unsigned char ItemType8;
unsigned char ItemNumber8;
unsigned char ItemName8[16];
};
struct /* olmNAME_DATA (16 bit) */ {
unsigned char ItemType16;
unsigned char ItemNumber16MSB;
unsigned char ItemNumber16LSB;
unsigned char ItemName16[16];
};
}
}
}
Thanks for all the help in advance.
Yatin Patel.