I add the COM object into my c# program.
The COM object is written as c++ and i have no control on this
One of the function is defined in c++ is
setVariable(int count, STRUCT *p);
where STRUCT is typedef to structure and allow to pass an array of the STRUCT *
However, when i import to my c# program,
The prototype is shown as
setVariable(System.Int32 count , ref STRUCT p);
In c#, i declare the
STRUCT  p = new STRUCT;
int count = 10;
Here is my question:
How do i can pass the array to the function?
setVariable(count , ref p);
but in c++, it only see the first one