Click here to Skip to main content
16,006,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: std::string GetBuffer ?? Pin
Tomasz Sowinski4-Mar-02 0:22
Tomasz Sowinski4-Mar-02 0:22 
GeneralRe: std::string GetBuffer ?? Pin
Christian Graus4-Mar-02 0:53
protectorChristian Graus4-Mar-02 0:53 
GeneralSTL iterator dereference question... Pin
Christian Graus3-Mar-02 16:29
protectorChristian Graus3-Mar-02 16:29 
GeneralRe: STL iterator dereference question... Pin
Jay Beckert3-Mar-02 17:17
Jay Beckert3-Mar-02 17:17 
GeneralRe: STL iterator dereference question... Pin
Christian Graus3-Mar-02 17:36
protectorChristian Graus3-Mar-02 17:36 
GeneralRe: STL iterator dereference question... Pin
Paul M Watt3-Mar-02 17:48
mentorPaul M Watt3-Mar-02 17:48 
GeneralRe: STL iterator dereference question... Pin
Christian Graus3-Mar-02 17:57
protectorChristian Graus3-Mar-02 17:57 
GeneralRe: STL iterator dereference question... Pin
Paul M Watt3-Mar-02 18:25
mentorPaul M Watt3-Mar-02 18:25 
I think that stl nice, you should just convey to the people that the iterator is an object, and in order to get access to the data that it represents, you will need to derefence it.

In the case of the vector<cstring>, if you want a pointer to a CString, you will need to take the address of the object once you have the CString.

If you wanted to do the same thing from a map iterator you would have to do this:

&(it->second)


It looks funny, but it is straight forward, but if you convey what an iterator is for and how it works, I think that people will see that it is nice rather than ugly.
GeneralRe: STL iterator dereference question... Pin
Jay Beckert4-Mar-02 10:49
Jay Beckert4-Mar-02 10:49 
GeneralRe: STL iterator dereference question... Pin
Joaquín M López Muñoz4-Mar-02 11:23
Joaquín M López Muñoz4-Mar-02 11:23 
Questionsimple c++ question??? Pin
John Cruz3-Mar-02 15:20
John Cruz3-Mar-02 15:20 
AnswerRe: simple c++ question??? Pin
Christian Graus3-Mar-02 15:25
protectorChristian Graus3-Mar-02 15:25 
GeneralRe: simple c++ question??? Pin
John Cruz3-Mar-02 15:34
John Cruz3-Mar-02 15:34 
GeneralRe: simple c++ question??? Pin
Christian Graus3-Mar-02 15:44
protectorChristian Graus3-Mar-02 15:44 
GeneralRe: simple c++ question??? Pin
John Cruz3-Mar-02 15:48
John Cruz3-Mar-02 15:48 
GeneralLoadLibrary Pin
Derick Cyril Thomas3-Mar-02 14:41
Derick Cyril Thomas3-Mar-02 14:41 
GeneralRe: LoadLibrary Pin
Tim Deveaux3-Mar-02 15:01
Tim Deveaux3-Mar-02 15:01 
GeneralRe: LoadLibrary Pin
Derick Cyril Thomas3-Mar-02 19:24
Derick Cyril Thomas3-Mar-02 19:24 
GeneralRe: LoadLibrary Pin
Tim Smith4-Mar-02 2:11
Tim Smith4-Mar-02 2:11 
GeneralSupporting Windows 9x, NT 4+ libraries Pin
Jon Sagara3-Mar-02 12:38
Jon Sagara3-Mar-02 12:38 
GeneralRe: Supporting Windows 9x, NT 4+ libraries Pin
Jon Sagara3-Mar-02 13:26
Jon Sagara3-Mar-02 13:26 
GeneralRe: Supporting Windows 9x, NT 4+ libraries Pin
Nish Nishant3-Mar-02 16:37
sitebuilderNish Nishant3-Mar-02 16:37 
GeneralRe: Supporting Windows 9x, NT 4+ libraries Pin
Tomasz Sowinski3-Mar-02 23:49
Tomasz Sowinski3-Mar-02 23:49 
Questionalgorithm? Pin
3-Mar-02 12:21
suss3-Mar-02 12:21 
AnswerRe: algorithm? Pin
Christian Graus3-Mar-02 13:01
protectorChristian Graus3-Mar-02 13:01 

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.