Click here to Skip to main content
15,910,980 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiontrouble using dll Pin
gargeug13-Oct-08 14:57
gargeug13-Oct-08 14:57 
AnswerRe: trouble using dll Pin
Mark Salsbery13-Oct-08 15:06
Mark Salsbery13-Oct-08 15:06 
QuestionRe: trouble using dll Pin
CPallini13-Oct-08 22:17
mveCPallini13-Oct-08 22:17 
AnswerRe: trouble using dll Pin
gargeug14-Oct-08 7:27
gargeug14-Oct-08 7:27 
QuestionSetup Wizard Question Pin
Rangarajan Varadan13-Oct-08 8:44
Rangarajan Varadan13-Oct-08 8:44 
AnswerRe: Setup Wizard Question Pin
Iain Clarke, Warrior Programmer13-Oct-08 17:44
Iain Clarke, Warrior Programmer13-Oct-08 17:44 
GeneralRe: Setup Wizard Question Pin
Rangarajan Varadan14-Oct-08 16:56
Rangarajan Varadan14-Oct-08 16:56 
Questionmap of lists of pointers Pin
Laan8213-Oct-08 7:05
Laan8213-Oct-08 7:05 
Hi all,

I'm trying to do a map of lists and I have problem, the program crush istantly, when I try to access an element of one of the lists in the map in order to insert or read an element in a list.

map<string,list><celement*>*> m_Layer; 
list<celement*>* ElementList = new list<celement*>;
string layerName = "Hello";
pair<string,list><celement*>*> entry = pair<string,list><celement*>*>(layerName,ElementList);
m_Layers.insert(entry);

//then to insert element I do this
string s = "Hello";
list<celement*>* lista =m_Layers[s];
lista->push_back(m_pTempElement);

//and to read I use an iterator in this way:
map<string,list><celement*>*>::iterator mapIter;
for(mapIter = m_Layers.begin();mapIter != m_Layers.end(); mapIter++)
{
list<celement*>* lista = mapIter->second;
list<celement*>::iterator iter;
for(iter=lista->begin();iter != lista->end();iter++)
{
...
}
}

Could anyone help me to find where I am making a mistake?
QuestionRe: map of lists of pointers Pin
David Crow13-Oct-08 7:39
David Crow13-Oct-08 7:39 
AnswerRe: map of lists of pointers [modified] Pin
Laan8213-Oct-08 7:57
Laan8213-Oct-08 7:57 
AnswerRe: map of lists of pointers Pin
Jason Hamilton14-Oct-08 5:04
Jason Hamilton14-Oct-08 5:04 
Questionhelp: how to integrate third party lib to my MFC Extension DLL. Pin
lyjqhjcplusplus13-Oct-08 4:59
lyjqhjcplusplus13-Oct-08 4:59 
AnswerRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
Roger Stoltz13-Oct-08 5:39
Roger Stoltz13-Oct-08 5:39 
GeneralRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
lyjqhjcplusplus13-Oct-08 5:57
lyjqhjcplusplus13-Oct-08 5:57 
AnswerRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
Roger Stoltz13-Oct-08 6:17
Roger Stoltz13-Oct-08 6:17 
GeneralRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
lyjqhjcplusplus13-Oct-08 6:34
lyjqhjcplusplus13-Oct-08 6:34 
GeneralRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
led mike13-Oct-08 6:53
led mike13-Oct-08 6:53 
GeneralRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
Roger Stoltz13-Oct-08 7:03
Roger Stoltz13-Oct-08 7:03 
GeneralRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
lyjqhjcplusplus13-Oct-08 7:04
lyjqhjcplusplus13-Oct-08 7:04 
GeneralRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
led mike13-Oct-08 7:25
led mike13-Oct-08 7:25 
AnswerRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
Roger Stoltz13-Oct-08 7:02
Roger Stoltz13-Oct-08 7:02 
GeneralRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
lyjqhjcplusplus13-Oct-08 8:13
lyjqhjcplusplus13-Oct-08 8:13 
AnswerRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
Roger Stoltz13-Oct-08 20:42
Roger Stoltz13-Oct-08 20:42 
AnswerRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
led mike13-Oct-08 5:40
led mike13-Oct-08 5:40 
GeneralRe: help: how to integrate third party lib to my MFC Extension DLL. Pin
lyjqhjcplusplus13-Oct-08 5:59
lyjqhjcplusplus13-Oct-08 5:59 

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.