Managed C++ and vectors
-
I use a lot of vectors for storing pointers to C++ objects. What is the best .NET framework collection type to use in Managed C++ for storing managed classes? Michael :-) Communication is the first step towards enlightenment.
-
I use a lot of vectors for storing pointers to C++ objects. What is the best .NET framework collection type to use in Managed C++ for storing managed classes? Michael :-) Communication is the first step towards enlightenment.
ArrayList is the analogy to vector... BUT, if you feel adventurous you can get Collection Generator from Chris Sells and create a new template for MC++ (and modify the code so that it works with MC++), then you just create/edit an XML document to create a new Collection type. Works very well with C#; haven't tested VB.NET's version. Comes with collections for Vectors and HashTables. James Simplicity Rules!
-
ArrayList is the analogy to vector... BUT, if you feel adventurous you can get Collection Generator from Chris Sells and create a new template for MC++ (and modify the code so that it works with MC++), then you just create/edit an XML document to create a new Collection type. Works very well with C#; haven't tested VB.NET's version. Comes with collections for Vectors and HashTables. James Simplicity Rules!
James T. Johnson wrote: ArrayList is the analogy to vector... Thanks for that. I'll have a read up on it. James T. Johnson wrote: BUT, if you feel adventurous you can get Collection Generator from Chris Sells and create a new template for MC++ Now this sounds interesting, I will have to go and have play. Thanks for the link. Michael :-) Communication is the first step towards enlightenment.