Marshalling arrays
suggest changeArrays of simple type
[DllImport("Example.dll")]
static extern void SetArray(
[MarshalAs(UnmanagedType.LPArray, SizeConst = 128)]
byte[] data);
Arrays of string
[DllImport("Example.dll")]
static extern void SetStrArray(string[] textLines);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents