L
Lorenzo
Hi
I have a problem converting the follow union in c#:
typedef union{
int iParam;
char acParamChar[128];
} Param;
I tried with this but don't work... why?
[StructLayout(LayoutKind.Explicit)]
struct Param
{
[FieldOffset(0)]
public int iParam;
[FieldOffset(0)]
public char []acParamChar;
}
There's someone that can help me?
Thank you.
I have a problem converting the follow union in c#:
typedef union{
int iParam;
char acParamChar[128];
} Param;
I tried with this but don't work... why?
[StructLayout(LayoutKind.Explicit)]
struct Param
{
[FieldOffset(0)]
public int iParam;
[FieldOffset(0)]
public char []acParamChar;
}
There's someone that can help me?
Thank you.