hi,
I'm trying to pass a List<double> array from C# to a C++ class library
but I get the following error:
"No overload for method 'zzz' takes '1' arguments"
My C++ method in the library has 1 argument:
zzz(List<double> x)
and i'm calling it from C# with:
List<double> test = new List<double>();
test.Add(0.123);
objTest.zzz(test);
Any pointers/links to information on this topic would be appreciated
Jamie
Willy Denoyette [MVP] - 31 Mar 2006 20:37 GMT
You need a 'reference' type argument in C++/CLI, so change your code like
this.
zzz(List<double>^ x)
All you need to know is written in the Ecma-372 "C++/CLI Language
Specification" which can be found here: http://www.ecma-international.org/.
Willy.
| hi,
|
[quoted text clipped - 13 lines]
|
| Jamie
jamie - 31 Mar 2006 22:59 GMT
> All you need to know is written in the Ecma-372 "C++/CLI Language
> Specification" which can be found here: http://www.ecma-international.org/.
>
> Willy.
thanks for the tip.
Jamie