U kunt proberen volgt code:
[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Ansi)]
struct Parameters
{
int. cp;
int. tb;
[MarshalAs (UnmanagedType.SysInt, SizeConst = 8)]
int. [] kaart;
[MarshalAs (UnmanagedType.R8, SizeConst = 8)]
dubbel [] freq;
}
[DllImport („MyDLL.Dll“)]
openbaar extern statisch int. FunctionName (refParameters param);