I'm developing a native library in C++ for a Metro app, using Vs12 RC.
I have this method in a ref class in a cpp file:
double myFunc(const Array<double>^ platformData,int start,const int count)
double *stdData = new double[count];
for (int i = 0 ; i < count ; i++)
stdData[i] = platformData[i];
return nativeFunc(&globalVar, stdData, start, count);
When I compile this, I get C1001 on the "return nativeFunc" line.
The signature of the nativeFunc is:
double nativeFunc(ClassVar *classVar, double * values, int start, int sample)
How can I fix this? Hope my code isn't buggy ;)
Thanks in advance for the help,
Hi, try to replace "const int count" by "int count" in the signature of "myFunc".
I can't reproduce this. Can you send me your project, or a stripped down example that still faults?
first name dot last name at microsoft dot com.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?