I need to access my C++ API via CLR method from C# application.
C++ method:int CreateEntity(double* Points);
Equivalent CLR wrapper method: int CreateEntity(double% Points);
I need to fill a number of doubles in C# app and pass it CLR method.
A list of doubles from a XML sample
<pts>0.0000000000000000,36.6508338286590030,73.3016676573180060,109.9525014859799900,146.6033353146399900</pts>
string[] vals = Values.Split(',');
double[] DVal = new double[size];
for (int itr = 0; itr < size; itr++)
DVal[itr] = Convert.ToDouble(vals[itr]);
Object.CreateEntity(DVal);
Getting the error "error CS1503: Argument 3: cannot convert from 'ref double*' to 'ref double'"
Suggestions needed. Thanks in advance.