Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTreeCtrl::GetItemState Pin
JohnJ16-Jun-02 10:19
JohnJ16-Jun-02 10:19 
GeneralRe: CTreeCtrl::GetItemState Pin
16-Jun-02 11:39
suss16-Jun-02 11:39 
QuestionHow is it you retrieve a string from a std::map? Pin
redeemer16-Jun-02 9:03
redeemer16-Jun-02 9:03 
AnswerRe: How is it you retrieve a string from a std::map? Pin
[James Pullicino]16-Jun-02 9:27
[James Pullicino]16-Jun-02 9:27 
GeneralRe: How is it you retrieve a string from a std::map? Pin
redeemer16-Jun-02 10:08
redeemer16-Jun-02 10:08 
GeneralRe: How is it you retrieve a string from a std::map? Pin
Joaquín M López Muñoz16-Jun-02 11:41
Joaquín M López Muñoz16-Jun-02 11:41 
GeneralRe: How is it you retrieve a string from a std::map? Pin
James R. Twine17-Jun-02 9:11
James R. Twine17-Jun-02 9:11 
GeneralRe: How is it you retrieve a string from a std::map? Pin
Christian Graus16-Jun-02 12:41
protectorChristian Graus16-Jun-02 12:41 
First of all, these typedefs are plain dumb. They make your code illegible.

Second of all, you can do the inserts much nicer like this:

mPaths[index] = path;

Thirdly, if you know for sure an index is in there, you can pull it out like this:

string s = mPaths[index];

beware - if you don't know for sure it is in there, you should use the method you've been using, the find and then ->second. Otherwise empty records will be entered into your map.



Christian

I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002

Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
QuestionWhere to get REAL HTTP/1.1-compatible proxy? Pin
Artem Moroz16-Jun-02 6:14
Artem Moroz16-Jun-02 6:14 
GeneralRe: CSocket / TCP/IP handling of send/receive error... Pin
Joaquín M López Muñoz16-Jun-02 11:52
Joaquín M López Muñoz16-Jun-02 11:52 
GeneralRe: CSocket / TCP/IP handling of send/receive error... Pin
17-Jun-02 6:26
suss17-Jun-02 6:26 
GeneralUNICODE Pin
Ancient Dragon16-Jun-02 5:01
Ancient Dragon16-Jun-02 5:01 
GeneralRe: UNICODE Pin
Rama Krishna Vavilala16-Jun-02 8:37
Rama Krishna Vavilala16-Jun-02 8:37 
GeneralRe: UNICODE [with an addition] Pin
Joaquín M López Muñoz16-Jun-02 12:06
Joaquín M López Muñoz16-Jun-02 12:06 
GeneralReturning IStream Pin
Hans Ruck16-Jun-02 4:56
Hans Ruck16-Jun-02 4:56 
GeneralRe: Returning IStream Pin
Rama Krishna Vavilala16-Jun-02 8:38
Rama Krishna Vavilala16-Jun-02 8:38 
GeneralRe: Returning IStream Pin
Le centriste17-Jun-02 8:24
Le centriste17-Jun-02 8:24 
GeneralProgram stops when showing using DIalogBox function. Pin
redeemer16-Jun-02 3:55
redeemer16-Jun-02 3:55 
GeneralRe: Program stops when showing using DIalogBox function. Pin
Joaquín M López Muñoz16-Jun-02 4:06
Joaquín M López Muñoz16-Jun-02 4:06 
GeneralRe: Program stops when showing using DIalogBox function. Pin
redeemer16-Jun-02 4:29
redeemer16-Jun-02 4:29 
GeneralRe: Program stops when showing using DIalogBox function. Pin
Joaquín M López Muñoz16-Jun-02 4:31
Joaquín M López Muñoz16-Jun-02 4:31 
GeneralRe: Program stops when showing using DIalogBox function. Pin
redeemer16-Jun-02 4:44
redeemer16-Jun-02 4:44 
GeneralRe: Program stops when showing using DIalogBox function. Pin
Rama Krishna Vavilala16-Jun-02 8:40
Rama Krishna Vavilala16-Jun-02 8:40 
Generalthanks Pin
redeemer16-Jun-02 10:39
redeemer16-Jun-02 10:39 
GeneralADO Pin
16-Jun-02 3:11
suss16-Jun-02 3:11 

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.