Need help converting argument for COM interface to c# (1 Viewer)

A

Anonymous

Guest
I am trying to interop a COM interface and am not sure what I need to change the argument to. Any COM to C# wizards able to answer this:

(long * pArray) - which is an array of integers.

I've tried:

(ref int pArray)
(ref Int32 pArray)
(ref Int64 pArray)
(int pArray)
([Out, MarshalAs(UnmanagedType.LPArray)] out int [] pArray)
 
A

Anonymous

Guest
I get an error when I add the SizeParamIndex:

Can not use SizeParamIndex for byref array parameters.

System.Runtime.InteropServices.MarshalDirectiveException: Can not use SizeParamIndex for byref array parameters
 

Users who are viewing this thread

Top Bottom