At 12/29/2003 09:37 AM, Ehsan Akhgari wrote:
>> Is there an MFC class that works like a "record"? >> >> For example, I have a data struct that contains an index string and >> several data items. >> >> I would like to store a bunch of them in an array and be able to >> "lookup" >> an item by the index string. >> >> I searched MSDN and the one thing I found was a String to Pointer >> class where I could store an index string and a pointer to the rest of >> the data. Is this the best there is? > >Are you looking for a map?
Maybe, I don't know.
>> typedef std::map< std::string, your_data_struct > map_type; > map_type theMap; > theMap[ "index" ] = value;
I guess you didn't understand the question.
I am looking for an MFC class to do this. Isn't this an MFC list?
What's all this std:: crap?
Phil Daley < AutoDesk > http://www.conknet.com/~p_daley
