Click here to Skip to main content
15,893,564 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL and CE Pin
Rob Caldecott13-Feb-06 4:34
Rob Caldecott13-Feb-06 4:34 
GeneralRe: STL and CE Pin
Andre xxxxxxx13-Feb-06 4:39
Andre xxxxxxx13-Feb-06 4:39 
GeneralRe: STL and CE Pin
Rob Caldecott13-Feb-06 4:42
Rob Caldecott13-Feb-06 4:42 
GeneralRe: STL and CE Pin
toxcct13-Feb-06 4:36
toxcct13-Feb-06 4:36 
GeneralRe: STL and CE Pin
Andre xxxxxxx13-Feb-06 4:40
Andre xxxxxxx13-Feb-06 4:40 
GeneralRe: STL and CE Pin
Jonas Larsson13-Feb-06 5:27
Jonas Larsson13-Feb-06 5:27 
GeneralRe: STL and CE Pin
Andre xxxxxxx13-Feb-06 5:44
Andre xxxxxxx13-Feb-06 5:44 
GeneralRe: STL in MFC projects, why??? Pin
Rob Caldecott13-Feb-06 4:03
Rob Caldecott13-Feb-06 4:03 
STL containers are MUCH more flexible than the MFC equivalents, primarily because:

* Iterators are more flexible than POSITIONs. Once you have the iterator, you have direct access to the value - no messing about with the CList GetNext/GetPrev functions.
* STL containers can be used with powerful STL functions (the humble std::sort for example). How would you sort a CArray for example? There is no CArray::Sort method. I also like using for_each with a function object to iterate through a container, processing each entry.
* STL comes with some other, very useful templates - I use std::pair a lot (often a container of pairs).

I think that many C++ programmers use MFC containers because they don't know STL very well. Smile | :)
GeneralRe: STL in MFC projects, why??? Pin
Nemanja Trifunovic13-Feb-06 4:11
Nemanja Trifunovic13-Feb-06 4:11 
GeneralRe: STL in MFC projects, why??? Pin
Rob Caldecott13-Feb-06 4:14
Rob Caldecott13-Feb-06 4:14 
QuestionRe: STL in MFC projects, why??? Pin
David Crow13-Feb-06 7:12
David Crow13-Feb-06 7:12 
AnswerRe: STL in MFC projects, why??? Pin
Rob Caldecott13-Feb-06 7:34
Rob Caldecott13-Feb-06 7:34 
GeneralRe: STL in MFC projects, why??? Pin
David Crow13-Feb-06 8:06
David Crow13-Feb-06 8:06 
GeneralRe: STL in MFC projects, why??? Pin
Andre xxxxxxx13-Feb-06 4:14
Andre xxxxxxx13-Feb-06 4:14 
GeneralRe: STL in MFC projects, why??? Pin
Rob Caldecott13-Feb-06 4:25
Rob Caldecott13-Feb-06 4:25 
GeneralRe: STL in MFC projects, why??? Pin
Nemanja Trifunovic13-Feb-06 4:35
Nemanja Trifunovic13-Feb-06 4:35 
GeneralRe: STL in MFC projects, why??? Pin
BadKarma13-Feb-06 4:20
BadKarma13-Feb-06 4:20 
GeneralSTL and RTTI Pin
Andre xxxxxxx13-Feb-06 4:27
Andre xxxxxxx13-Feb-06 4:27 
GeneralRe: STL and RTTI Pin
Rob Caldecott13-Feb-06 4:31
Rob Caldecott13-Feb-06 4:31 
GeneralRe: STL and RTTI Pin
Rob Caldecott13-Feb-06 4:44
Rob Caldecott13-Feb-06 4:44 
GeneralRe: STL in MFC projects, why??? Pin
Stephen Hewitt13-Feb-06 16:43
Stephen Hewitt13-Feb-06 16:43 
GeneralRe: STL in MFC projects, why??? Pin
Trollslayer13-Feb-06 4:58
mentorTrollslayer13-Feb-06 4:58 
AnswerRe: STL in MFC projects, why??? Pin
Nemanja Trifunovic13-Feb-06 4:09
Nemanja Trifunovic13-Feb-06 4:09 
AnswerRe: STL in MFC projects, why??? Pin
BadJerry13-Feb-06 4:11
BadJerry13-Feb-06 4:11 
QuestionRe: STL in MFC projects, why??? Pin
David Crow13-Feb-06 8:11
David Crow13-Feb-06 8: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.