CMapStringToString equivalent?
-
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]
-
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]
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 )
-
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 )
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]
-
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]
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 )