A
Andrea Palmieri
hello everybody,
I exported a function from a dll written in c.
This function has an array of long among the parameters and the content of
the array is modified in the dll function
How can I invoke this function from a c# program ?
I tried
I declared the function as:
public static extern int MyFunction(
[MarshalAs(UnmanagedType.LPArray)] long[] pSlotList);
and invoked it
long[4] v = {0,0,0,0};
n = MyClass.MyFunction(v );
..... but it doesn't work: the content of the array hasn't been modified at
all !!!
any suggestion ?
Thank you
Andrea
I exported a function from a dll written in c.
This function has an array of long among the parameters and the content of
the array is modified in the dll function
How can I invoke this function from a c# program ?
I tried
I declared the function as:
public static extern int MyFunction(
[MarshalAs(UnmanagedType.LPArray)] long[] pSlotList);
and invoked it
long[4] v = {0,0,0,0};
n = MyClass.MyFunction(v );
..... but it doesn't work: the content of the array hasn't been modified at
all !!!
any suggestion ?
Thank you
Andrea