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. CMapStringToString equivalent?

CMapStringToString equivalent?

Scheduled Pinned Locked Moved Managed C++/CLI
csharphtmlcomquestion
4 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.
  • N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #1

    What's the .NET equivalent for CMapStringToString? Nish :)


    Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

    C 1 Reply Last reply
    0
    • N Nish Nishant

      What's the .NET equivalent for CMapStringToString? Nish :)


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Nishant S wrote: CMapStringToString Argh - please tell me this is a joke ? MFC container classes are such crap, why would they specialise such a thing ? Anyhow, the answer is dictionarybase, a class you need to derive from in order to create a dictionary which is strongly typed. There's heaps of docs in MSDN, basically the derived class gets access to a member called Dictionary, if you derive a class from DictionaryBase, and then type Dictionary., the autocomplete makes the rest of it pretty self explanatory. It is NOT a multimap though, if you use the put method and try to put a key that already exists, it will blow up, and if you use the [] notation, the new value will overwrite the old one. Christian We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )

      N 1 Reply Last reply
      0
      • C Christian Graus

        Nishant S wrote: CMapStringToString Argh - please tell me this is a joke ? MFC container classes are such crap, why would they specialise such a thing ? Anyhow, the answer is dictionarybase, a class you need to derive from in order to create a dictionary which is strongly typed. There's heaps of docs in MSDN, basically the derived class gets access to a member called Dictionary, if you derive a class from DictionaryBase, and then type Dictionary., the autocomplete makes the rest of it pretty self explanatory. It is NOT a multimap though, if you use the put method and try to put a key that already exists, it will blow up, and if you use the [] notation, the new value will overwrite the old one. Christian We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        Christian Graus wrote: Argh - please tell me this is a joke ? Huh? Nope! I won't cater to your STL-is-better-than-MFC whims! No way!!! Anyway thanks for that tip on dictionary objects. I did a quick look-up and ended up with the HashTable class which is just what I wanted :-)


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        C 1 Reply Last reply
        0
        • N Nish Nishant

          Christian Graus wrote: Argh - please tell me this is a joke ? Huh? Nope! I won't cater to your STL-is-better-than-MFC whims! No way!!! Anyway thanks for that tip on dictionary objects. I did a quick look-up and ended up with the HashTable class which is just what I wanted :-)


          Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Nishant S wrote: Huh? Nope! I won't cater to your STL-is-better-than-MFC whims! No way!!! That's fine, I guess someone has to be stuck with doing things the hard and ugly way :-) Nishant S wrote: Anyway thanks for that tip on dictionary objects. Glad to help - I spent some time last night implimenting a typed dictionary if XmlNodes to paths and values, so it was perfect timing. Christian We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )

          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