Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCDialog and CPropertySheet problem..! Pin
Halloko24-Apr-04 11:55
Halloko24-Apr-04 11:55 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Prakash Nadar24-Apr-04 23:32
Prakash Nadar24-Apr-04 23:32 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Halloko24-Apr-04 23:43
Halloko24-Apr-04 23:43 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Prakash Nadar24-Apr-04 23:56
Prakash Nadar24-Apr-04 23:56 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Halloko24-Apr-04 23:58
Halloko24-Apr-04 23:58 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Prakash Nadar25-Apr-04 0:02
Prakash Nadar25-Apr-04 0:02 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Halloko26-Apr-04 19:59
Halloko26-Apr-04 19:59 
GeneralCMap Losing Data Pin
brdavid24-Apr-04 10:34
brdavid24-Apr-04 10:34 
I have the following declaration
CMap<CString*, CString*, CStringArrayEx*, CStringArrayEx*> *m_EnhancementArray;<br />

What I am trying to accomplish is create a Map so I can take a string and get in return an array of other strings. I liked CStringArray but needed a copy constructor so that is what CStringArrayEx is all about.

The problem is when I set a value to this map using the following
m_EnhancementArray->SetAt(&returnVal, &EnhancementArray);<br />

returnVal is of course the string I have made as my key and EnhancementArray is my CStringArrayEx of strings. This call seems to work fine. When I iterate through the map, from the function where I called SetAt, I can see the data. However once I leave the function where SetAt is called, the data becomes corrupted in the CMap. I tried this without using a pointer and I still get the same thing to happen. Does anyone know what might be causing my data to disappear?

Thanks!
GeneralRe: CMap Losing Data Pin
toxcct24-Apr-04 11:49
toxcct24-Apr-04 11:49 
GeneralRe: CMap Losing Data Pin
brdavid24-Apr-04 12:37
brdavid24-Apr-04 12:37 
GeneralRe: CMap Losing Data Pin
brdavid24-Apr-04 15:45
brdavid24-Apr-04 15:45 
GeneralRe: CMap Losing Data Pin
gUrM33T24-Apr-04 16:18
gUrM33T24-Apr-04 16:18 
GeneralRe: CMap Losing Data Pin
brdavid25-Apr-04 1:53
brdavid25-Apr-04 1:53 
Generaliphlpapi.h error Pin
Toni7824-Apr-04 9:45
Toni7824-Apr-04 9:45 
GeneralRe: iphlpapi.h error Pin
_moved24-Apr-04 12:28
_moved24-Apr-04 12:28 
GeneralRe: iphlpapi.h error Pin
Anonymous25-Apr-04 1:08
Anonymous25-Apr-04 1:08 
Generalfopen problem... Pin
toxcct24-Apr-04 7:00
toxcct24-Apr-04 7:00 
GeneralRe: fopen problem... Pin
Prakash Nadar24-Apr-04 7:08
Prakash Nadar24-Apr-04 7:08 
GeneralRe: fopen problem... Pin
toxcct24-Apr-04 7:09
toxcct24-Apr-04 7:09 
GeneralRe: fopen problem... Pin
toxcct24-Apr-04 7:13
toxcct24-Apr-04 7:13 
GeneralRe: fopen problem... Pin
Prakash Nadar24-Apr-04 7:18
Prakash Nadar24-Apr-04 7:18 
GeneralRe: fopen problem... Pin
toxcct24-Apr-04 7:19
toxcct24-Apr-04 7:19 
GeneralRe: fopen problem... Pin
Prakash Nadar24-Apr-04 7:27
Prakash Nadar24-Apr-04 7:27 
GeneralRe: fopen problem... Pin
toxcct24-Apr-04 7:29
toxcct24-Apr-04 7:29 
GeneralRe: fopen problem... Pin
Tim Smith24-Apr-04 7:59
Tim Smith24-Apr-04 7: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.