I am trying to create a CMap which has a CString as a key and a CMap as a value. Obviously the following is not working but I have no clue how it is working.
CMap<CString, LPCSTR, CMap<CString, LPCSTR, int, int>, CMap<CString, LPCSTR, int, int>> xyWhatEver;
Anybody has an idea how to implement such a datastructure in c++ using CMap?
CMap doesn't have copy constructor. I'd suggest using STL classes instead of mfc. Of course you can replace CMap to CMap*, but this will require additional allocating/freeing steps.