ciao.
ho una struttura tagSectionProperties
con 2 dati int A e B
ho una mappa m_MapSection
CMap<CString,LPCSTR,tagSectionProperties*,tagSecti onProperties*>m_MapSection;
faccio:
tagSectionProperties* pSectProp;
pSectProp->A=1;
pSectProp->B=1;
se faccio :
tagSectionProperties* tagSection;
m_MapSection.SetAt("xxx",pSectProp);
m_MapSection.Lookup(strSectionName,tagSection);
in tagSection finiscono correttamente A = 1 e A =2
se in un altra parte del codice (successiva al setat della mappa) faccio :
tagSectionProperties* tagSectionProp;
m_MapSection.Lookup("xxx",tagSectionProp);
ho
tagSectionProp->A =88324232
perchè non ho 1?
Grazie.