> >Are you looking for a map? > > Maybe, I don't know. The best thing I could guess you were looking for was a map. Did you read up on std::map?
> >> typedef std::map< std::string, your_data_struct > map_type; > > map_type theMap; > theMap[ "index" ] = value; > > I guess you didn't understand the question. Maybe. > I am looking for an MFC class to do this. Ok. Who said std::map can't be used in an MFC app? > Isn't this an MFC list? This is an MSVC list. So, both C++ and MFC can be discussed here. > What's all this std:: crap? It's code usage from the standard library, which has better maps than MFC. I'm not going to start a flame war here; so if you think MFC's CMap (and its family) are a better choice, then you can use them. Just be warned that you may be wrong... HTH, ------------- Ehsan Akhgari List Owner: [EMAIL PROTECTED] [ Email: [EMAIL PROTECTED] ] [ WWW: http://www.beginthread.com/Ehsan ] The answers to life's questions lie inside you. All you need to do is look, listen, and trust.
