J
J.M.
Hi,
I need help.
I want use this API
LIB_EXTERN_C LIB_API long STDCALL method(
long id,
const double *vIN,
double *vOUT);
I use this syntaxe in c#
[DllImport("LIB.dll", EntryPoint="_method@12")]
public static extern long method(long idMethode, ref double [] vIn,
ref double[] vOUT);
double [] vIn = new double[10];
double [] vOUT= new double[10];
Main.method(1, ref vIn, ref vOUT);
I receive no error but the results it's bad...
vIn.Length == 1 and vOUT.Length == 1 and containt no data.
Thanks
I need help.
I want use this API
LIB_EXTERN_C LIB_API long STDCALL method(
long id,
const double *vIN,
double *vOUT);
I use this syntaxe in c#
[DllImport("LIB.dll", EntryPoint="_method@12")]
public static extern long method(long idMethode, ref double [] vIn,
ref double[] vOUT);
double [] vIn = new double[10];
double [] vOUT= new double[10];
Main.method(1, ref vIn, ref vOUT);
I receive no error but the results it's bad...
vIn.Length == 1 and vOUT.Length == 1 and containt no data.
Thanks