Amibroker COM function signature

mastermind007

Well-Known Member
#1
I want to pass Buy and Sell array from AFL to a COM object so I defined C# function as

Code:
public void MarshalAsArray(
[In, MarshalAs(UnmanagedType.I4)] UInt32 size,
[In, Out, MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.R4, SizeParamIndex = 0)] float[] array
)
{
}
I get type mismatch error and I am unable to figure out what is missing.