c# - How to declare array of IVector<double>^ Points in C++? -
one small in direct2d application. have ivector<double>^ points collection in c++ application. set points collection c# code. can set ilist<double> c# ivector<double>^ points list of double.
here requirement that, have set collection of double[] c++ code. in c# can declare collection following syntax list<double[]>. new c++ , not familiar available api in c++ library in windows store apps. 1 can please me on this.?. requirement simple in 2 lines " should able set list<double[]> c++ library c# code".
any appreciated.
-david c
i'm not 100% sure issue is, since haven't shown code @ all, think might tripping on array syntax.
in c++/cli, can declare array square brackets (double[]), , works, it's unmanaged array. can't have field in managed class, , passing managed apis isn't easy.
the syntax managed array array<double>. reference type, you'll want ^ when have variable of type.
array<double>^ buffer = gcnew array<double>(1024); therefore, list<double[]> in c# turns list<array<double>^> in c++/cli.
Comments
Post a Comment