Hello!
I have to wrapp an unmanaged C++ class in order to use it in C#.
For this I create a managed C++ dll which wrapp all the method of the
unmanaged class.
Now the problem is: how can I wrapp a std::list which is returned by an
unmanaged C++ method?
Knowing that the list is a list of objects (typedef list<Foo*> ListFoo;
where Foo is a class).
Thank you in advance :)
Jeff
Dennis Doomen - 05 Aug 2003 18:20 GMT
The best way is to copy the elements to an ArrayList. Since you can't assume
anything about the internal layout of the std::list, you can't play tricks
using references, etc.
Dennis Doomen
Sioux T.S.O. Netherlands
> Hello!
>
[quoted text clipped - 12 lines]
>
> Jeff