[MarshalAs(Unman agedType.ByValA rray, SizeConst=MAX_M ESSAGE * MAX_MESS_LEN)]
public char[] Message;
User Profile
Collapse
-
P/invoke : Marshaling two-dimensional char array
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.Code:typedef struct { short myshort; char Message[MAX_MESSAGE][MAX_MESS_LEN]; } mystruct;
Here is the C# (marshaled) structure in progress:...
No activity results to display
Show More
Leave a comment: