Click here to Skip to main content
15,899,025 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: How to creat an Object from with a pointer Pin
Jose Cruz1-Oct-02 3:43
Jose Cruz1-Oct-02 3:43 
GeneralCombo heigth problem Pin
Jose Cruz30-Sep-02 7:46
Jose Cruz30-Sep-02 7:46 
GeneralRe: Combo heigth problem Pin
Paul M Watt30-Sep-02 10:00
mentorPaul M Watt30-Sep-02 10:00 
GeneralRe: Combo heigth problem Pin
Jose Cruz1-Oct-02 3:51
Jose Cruz1-Oct-02 3:51 
GeneralRe: Combo heigth problem Pin
Ed Gadziemski1-Oct-02 4:06
professionalEd Gadziemski1-Oct-02 4:06 
GeneralRe: Combo heigth problem Pin
Jose Cruz1-Oct-02 5:16
Jose Cruz1-Oct-02 5:16 
QuestionSTL reference? Pin
User 988527-Sep-02 6:53
User 988527-Sep-02 6:53 
AnswerRe: STL reference? Pin
RedZenBird27-Sep-02 8:18
RedZenBird27-Sep-02 8:18 
maybe multimap is a better fit for what you want here?

but, here is a code snippette that may be worth while though:

...

// define types
//
using namespace std;

typedef vector<string> STRING_LIST;
typedef map< string, STRING_LIST* > MAP_STRING_TO_LIST;
typedef MAP_STRING_TO_LIST::iterator MAP_STRING_TO_LIST_ITER;

// declare variable of type
//
MAP_STRING_TO_LIST oMyList;

bool InsertString( string oKey, string oValue )
{

MAP_STRING_TO_LIST_ITER oIter = oMyList.find( oKey );
if ( oMyList.end() == oIter )
{
// no entry yet for this key...
//
STRING_LIST* poList = new STRING_LIST;
poList->push_back( oValue );
oMyList.insert( MAP_STRING_TO_LIST::value_type( oKey, poList );
}
else
{
STRING_LIST* poList = (*oIter).second;
poList->push_back( oValue );
}
}

hope that helps

Just trying to keep the forces of entropy at bay
Generalatl full control Pin
Anonymous23-Sep-02 18:05
Anonymous23-Sep-02 18:05 
GeneralRe: atl full control Pin
Todd Smith24-Sep-02 7:03
Todd Smith24-Sep-02 7:03 
GeneralRe: atl full control Pin
Jörgen Sigvardsson3-Oct-02 14:28
Jörgen Sigvardsson3-Oct-02 14:28 
QuestionHow to do this properly with STL? Pin
Mark Tutt23-Sep-02 3:49
Mark Tutt23-Sep-02 3:49 
AnswerRe: How to do this properly with STL? Pin
Joao Vaz23-Sep-02 4:02
Joao Vaz23-Sep-02 4:02 
GeneralRe: How to do this properly with STL? Pin
Mark Tutt23-Sep-02 4:14
Mark Tutt23-Sep-02 4:14 
GeneralRe: How to do this properly with STL? Pin
Joao Vaz23-Sep-02 6:17
Joao Vaz23-Sep-02 6:17 
GeneralRe: How to do this properly with STL? Pin
Mark Tutt23-Sep-02 15:52
Mark Tutt23-Sep-02 15:52 
AnswerRe: How to do this properly with STL? Pin
Joaquín M López Muñoz23-Sep-02 9:09
Joaquín M López Muñoz23-Sep-02 9:09 
GeneralRe: How to do this properly with STL? Pin
Mark Tutt23-Sep-02 10:41
Mark Tutt23-Sep-02 10:41 
GeneralRe: How to do this properly with STL? Pin
Joao Vaz23-Sep-02 21:08
Joao Vaz23-Sep-02 21:08 
GeneralOLEDB (CCommand) Problem Pin
ramjan23-Sep-02 0:22
ramjan23-Sep-02 0:22 
GeneralRe: OLEDB (CCommand) Problem Pin
Steve S24-Sep-02 0:38
Steve S24-Sep-02 0:38 
GeneralUse Vc dll in delphi Pin
Mazdak22-Sep-02 3:57
Mazdak22-Sep-02 3:57 
GeneralRe: Use Vc dll in delphi Pin
Alexandru Savescu24-Sep-02 0:22
Alexandru Savescu24-Sep-02 0:22 
GeneralMaybe lame question ... Pin
Mandalay18-Sep-02 5:50
Mandalay18-Sep-02 5:50 
GeneralRe: Maybe lame question ... Pin
Michael Dunn18-Sep-02 7:08
sitebuilderMichael Dunn18-Sep-02 7:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.