UhOh... A storm is brewing... Seriously, the "std" prefix is used to select the "std" namespace which is where the STL lives. If you are not familiar with STL, you *really* need to read up on it, download Boost libraries, etc. It makes things in C++ so much easier!
Ciao, Dee -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Phil Daley Sent: Friday, January 02, 2004 4:13 PM To: [EMAIL PROTECTED] Subject: RE: [msvc] storing "records" 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 <SNIP>
