J
Joe Thompson
Using VS.Net 2003 - a managed VC++ WinForms app:
If I have an unmanged structure like
typedef struct
{
unsigned char Field1;
unsigned char Field2;
unsigned int Field3: 6;
unsigned int Field4: 2;
} MYSTRUCT;
and a managed byte array btArr that is 3 bytes long, what is the syntax to
convert the byte array to a MYSTRUCT?
MYSTRUCT *ms = (MYSTRUCT*)btArr;
does not work (or compile for that matter).
Thank you,
Joe
If I have an unmanged structure like
typedef struct
{
unsigned char Field1;
unsigned char Field2;
unsigned int Field3: 6;
unsigned int Field4: 2;
} MYSTRUCT;
and a managed byte array btArr that is 3 bytes long, what is the syntax to
convert the byte array to a MYSTRUCT?
MYSTRUCT *ms = (MYSTRUCT*)btArr;
does not work (or compile for that matter).
Thank you,
Joe