- Problems with wrapping a C DLL from C#
- void func(double *y, double *x){...}
- extern "C" __declspec(dllexport) void func(double *y,double *x);
- __declspec(dllexport) void func(double *y,double *x){...}
- static class AnyClass
- {
- [DllImport(dllPath)]
- public extern static void func(out double[] y, double[] x);
- int otherfunc
- {
- double[] x = new double[5];
- double[] y = new double[5];
- ...
- func(out y, x);
- }
- }