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

C / C++ / MFC

 
GeneralRe: Another map question Pin
Chad Koehler30-Sep-02 9:29
Chad Koehler30-Sep-02 9:29 
Generalgreat news!! Pin
ns30-Sep-02 9:49
ns30-Sep-02 9:49 
GeneralWhat about read? Pin
ns30-Sep-02 10:00
ns30-Sep-02 10:00 
GeneralRe: What about read? Pin
Scott H. Settlemier30-Sep-02 10:14
Scott H. Settlemier30-Sep-02 10:14 
GeneralRe: What about read? Pin
ns30-Sep-02 10:21
ns30-Sep-02 10:21 
GeneralRe: What about read? Pin
Scott H. Settlemier1-Oct-02 7:36
Scott H. Settlemier1-Oct-02 7:36 
GeneralRe: What about read? Pin
ns1-Oct-02 7:40
ns1-Oct-02 7:40 
Generala map question Pin
ns30-Sep-02 8:57
ns30-Sep-02 8:57 
I have a map object:

std::map [long , CString] m_MapForMerge;
(forgot how to replace angled brackets for definition of map for CP)

Its just declared but not created yet.

I get the values of the its two components in a loop, nSize and tempBufString . I want to fill the map with these two values. Is this the way to do it?


tempBuffer = new char[nSize];

    ReadPFile(sPathName, tempBuffer);

    tempBufString = tempBuffer;

    m_MapForMerge[nSize] = tempBufString;


or should it be:

tempBufString = m_MapForMerge[nSize];


Appreciate your help,
ns
GeneralRe: a map question Pin
Anonymous30-Sep-02 9:20
Anonymous30-Sep-02 9:20 
GeneralRe: a map question Pin
RedZenBird30-Sep-02 12:16
RedZenBird30-Sep-02 12:16 
GeneralRe: a map question Pin
jhwurmbach30-Sep-02 21:49
jhwurmbach30-Sep-02 21:49 
GeneralRe: a map question Pin
ns1-Oct-02 2:26
ns1-Oct-02 2:26 
GeneralCreate array of CArray Pin
ooosawaddee330-Sep-02 7:29
ooosawaddee330-Sep-02 7:29 
GeneralRe: Create array of CArray Pin
jmkhael30-Sep-02 7:30
jmkhael30-Sep-02 7:30 
GeneralCfile and consecutive writes Pin
ns30-Sep-02 7:18
ns30-Sep-02 7:18 
GeneralRe: Cfile and consecutive writes Pin
jmkhael30-Sep-02 7:21
jmkhael30-Sep-02 7:21 
GeneralRe: Cfile and consecutive writes Pin
ns30-Sep-02 7:28
ns30-Sep-02 7:28 
GeneralRe: Cfile and consecutive writes Pin
jmkhael30-Sep-02 7:33
jmkhael30-Sep-02 7:33 
QuestionCan anyone help... Pin
Kash30-Sep-02 7:06
Kash30-Sep-02 7:06 
AnswerRe: Can anyone help... Pin
gije30-Sep-02 7:30
gije30-Sep-02 7:30 
GeneralRe: Can anyone help... Pin
Kash30-Sep-02 7:29
Kash30-Sep-02 7:29 
AnswerRe: Can anyone help... Pin
jmkhael30-Sep-02 7:54
jmkhael30-Sep-02 7:54 
GeneralRe: Can anyone help... Pin
Kash30-Sep-02 8:11
Kash30-Sep-02 8:11 
Questionhow to disable accelerator key? Pin
bluntagain30-Sep-02 6:28
bluntagain30-Sep-02 6:28 
AnswerRe: how to disable accelerator key? Pin
jmkhael30-Sep-02 6:42
jmkhael30-Sep-02 6:42 

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.