Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Managed C++ and vectors

Managed C++ and vectors

Scheduled Pinned Locked Moved Managed C++/CLI
questioncsharpc++dotnet
3 Posts 2 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael P Butler
    wrote on last edited by
    #1

    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.

    J 1 Reply Last reply
    0
    • M Michael P Butler

      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.

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      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!

      M 1 Reply Last reply
      0
      • J James T Johnson

        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!

        M Offline
        M Offline
        Michael P Butler
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups