Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My data is generated in unManaged C++, I am filling the data into a object that object that object i am processing in Managed C++ wrapper. how to pass that object and access data inside that object.

Earlier i was sending Array of Integer and used to convert it in managed form as,

cli::array<System::Int>^ newIndices =gcnew cli::array <System::Int32>(num);

how to do the same with object array ?
I am using CLI wrapper and not the COM interface.
Posted
Comments
Philippe Mori 16-Oct-15 12:26pm    
There are many ways to do things.... One approach is to create a wrapper for each item and fill target array with those.

1 solution

You should stay in a mostly native data format ie int. Take a look how I done it in my article.

The fundamental principle is to copy the data in own memory/objects in the target language.
 
Share this answer
 
Comments
Its The PD 27-Nov-15 3:42am    
Thanks a lot I already solved the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900