Click here to Skip to main content
15,896,727 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: What's Stack? Pin
CPallini12-Sep-08 9:56
mveCPallini12-Sep-08 9:56 
AnswerRe: What's Stack? Pin
Mark Salsbery12-Sep-08 10:30
Mark Salsbery12-Sep-08 10:30 
QuestionCreating a directory with full access permissions Pin
V K 212-Sep-08 3:07
V K 212-Sep-08 3:07 
AnswerRe: Creating a directory with full access permissions Pin
led mike12-Sep-08 4:31
led mike12-Sep-08 4:31 
QuestionRe: Creating a directory with full access permissions Pin
David Crow12-Sep-08 5:36
David Crow12-Sep-08 5:36 
AnswerRe: Creating a directory with full access permissions Pin
Rane12-Sep-08 5:58
Rane12-Sep-08 5:58 
GeneralRe: Creating a directory with full access permissions Pin
V K 212-Sep-08 20:45
V K 212-Sep-08 20:45 
QuestionCMap problem Pin
Dhiraj kumar Saini12-Sep-08 2:22
Dhiraj kumar Saini12-Sep-08 2:22 
hi,

I am using CMap To store data in the form of a structure. Before pushing the data data CMap finds that whether the data with specified key is presnt or not. If it is not present the it is Set.

Now what i want is that if the data with some key exist and u are having some new data for the same key then the original data should be replaced with trhe new data in the CMap.

Here is my code

Please tell what to do.

void CMainDlg::FillDetailsinVisitorsMap(VisitorDetails stVisitorDetails, CString strSessionID)
{
if(m_mapVisitorDetails.Lookup(strSessionID,stVisitorDetails) == 0)
{
// NOT FOUND IN MAP
m_mapVisitorDetails.SetAt(strSessionID,stVisitorDetails);
}
}

Thanks in advance.

Dhiraj
QuestionRe: CMap problem Pin
David Crow12-Sep-08 2:27
David Crow12-Sep-08 2:27 
AnswerRe: CMap problem Pin
Dhiraj kumar Saini12-Sep-08 2:29
Dhiraj kumar Saini12-Sep-08 2:29 
GeneralRe: CMap problem Pin
led mike12-Sep-08 4:29
led mike12-Sep-08 4:29 
GeneralYou're a bad guy Pin
CPallini12-Sep-08 5:21
mveCPallini12-Sep-08 5:21 
GeneralRe: CMap problem Pin
Mark Salsbery12-Sep-08 5:34
Mark Salsbery12-Sep-08 5:34 
GeneralRe: CMap problem Pin
CPallini12-Sep-08 5:41
mveCPallini12-Sep-08 5:41 
GeneralRe: CMap problem Pin
Mark Salsbery12-Sep-08 5:49
Mark Salsbery12-Sep-08 5:49 
GeneralRe: CMap problem Pin
CPallini12-Sep-08 6:34
mveCPallini12-Sep-08 6:34 
GeneralRe: CMap problem Pin
Mark Salsbery12-Sep-08 7:47
Mark Salsbery12-Sep-08 7:47 
AnswerRe: CMap problem Pin
Cedric Moonen12-Sep-08 2:29
Cedric Moonen12-Sep-08 2:29 
GeneralRe: CMap problem Pin
Michael Schubert12-Sep-08 2:32
Michael Schubert12-Sep-08 2:32 
AnswerRe: CMap problem Pin
toxcct12-Sep-08 3:14
toxcct12-Sep-08 3:14 
QuestionShare data among all loaded instances of a certain DLL Pin
Joseph Marzbani12-Sep-08 2:06
Joseph Marzbani12-Sep-08 2:06 
AnswerRe: Share data among all loaded instances of a certain DLL Pin
CPallini12-Sep-08 2:10
mveCPallini12-Sep-08 2:10 
GeneralRe: Share data among all loaded instances of a certain DLL Pin
Joseph Marzbani12-Sep-08 2:19
Joseph Marzbani12-Sep-08 2:19 
GeneralRe: Share data among all loaded instances of a certain DLL Pin
CPallini12-Sep-08 3:28
mveCPallini12-Sep-08 3:28 
QuestionConvert bitmap edge in line Pin
key_b112-Sep-08 0:29
key_b112-Sep-08 0:29 

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.