hi,
I'm currently trying to deal with this struct from C lib using Platform invoke in C#.
Here is the C struct:
This structure is passed as an argument to many functions of the dll I'm exporting.
Here is the C# (marshaled) structure in progress:
So basically, could you help me defining the equivalent matrix... I guess i need to use marshaling also... Thanks a lot. I've been searching for days...
I'm currently trying to deal with this struct from C lib using Platform invoke in C#.
Here is the C struct:
Code:
typedef struct
{
short myshort;
char Message[MAX_MESSAGE][MAX_MESS_LEN];
} mystruct;
Here is the C# (marshaled) structure in progress:
Code:
[ StructLayout( LayoutKind.Sequential, CharSet=CharSet.Ansi )]
public struct mystruct
{
public short myshort;
[MarshalAs(???)]
???
}
Comment