Click here to Skip to main content
15,890,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Robert Edward Caldecott wrote:
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.


How is an iterator more flexible than the methods of the MFC container classes? Do you really like the it->second syntax?


Robert Edward Caldecott wrote:
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.


You can sort a CArray easily with qsort. qsort is already in the C-Runtime, so no need for an other library to do the same job.


Robert Edward Caldecott wrote:
I think that many C++ programmers use MFC containers because they don't know STL very well.


That may be true, but if you have the MFC containers, why should you bother with an other set of containers? Or do you think a .net programmer would use MFC classes in his app if he could?
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 
AnswerRe: STL in MFC projects, why??? Pin
BadJerry13-Feb-06 23:26
BadJerry13-Feb-06 23:26 
QuestionHow to encrypt .exe? Pin
Drca13-Feb-06 2:42
Drca13-Feb-06 2:42 
QuestionRe: How to encrypt .exe? Pin
David Crow13-Feb-06 3:13
David Crow13-Feb-06 3:13 
QuestionRe: How to encrypt .exe? Pin
Maximilien13-Feb-06 3:27
Maximilien13-Feb-06 3:27 
AnswerRe: How to encrypt .exe? Pin
Blake Miller13-Feb-06 4:25
Blake Miller13-Feb-06 4:25 
GeneralRe: How to encrypt .exe? Pin
Maximilien13-Feb-06 4:55
Maximilien13-Feb-06 4:55 

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.