Click here to Skip to main content
15,902,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CList Vs CArray MFC Pin
Christian Graus6-Aug-06 1:47
protectorChristian Graus6-Aug-06 1:47 
GeneralRe: CList Vs CArray MFC Pin
bob169726-Aug-06 5:46
bob169726-Aug-06 5:46 
GeneralRe: CList Vs CArray MFC Pin
Kevin McFarlane6-Aug-06 6:43
Kevin McFarlane6-Aug-06 6:43 
GeneralRe: CList Vs CArray MFC Pin
bob169726-Aug-06 7:35
bob169726-Aug-06 7:35 
GeneralRe: CList Vs CArray MFC Pin
Kevin McFarlane6-Aug-06 8:50
Kevin McFarlane6-Aug-06 8:50 
GeneralRe: CList Vs CArray MFC [modified] Pin
bob169726-Aug-06 9:27
bob169726-Aug-06 9:27 
GeneralRe: CList Vs CArray MFC Pin
Kevin McFarlane6-Aug-06 9:44
Kevin McFarlane6-Aug-06 9:44 
GeneralRe: CList Vs CArray MFC Pin
Christian Graus6-Aug-06 10:46
protectorChristian Graus6-Aug-06 10:46 
bob16972 wrote:
Would you suggest using STL over the MFC container classes before you knew which was the best for the job?


As a general rule, I would suggest STL all the time, yes. If you're getting some serialisation support from the MFC containers, and if you're confident that you'd rather write code to move items between container types in MFC (if you need to), and to do things like sort and search in your MFC containers, and if you're confident that every C++ program you ever write will use MFC, and you feel that writing a function object for use by 'for each' for serialisation is more work than all of the above, then you should stick with MFC.

bob16972 wrote:
Would you dog one over the other blindly evertime I used the words "CArray" or "CList"?


*sigh* As has been said, STL is more powerful than MFC containers, and is *standard*. If you were in an automotive forum, would you suggest a car that ran on gas whenever someone asked for help with their steam driven car ? I reckon you would.

bob16972 wrote:
The thread initiator did not ask about STL. He asked about comparing two MFC classes.


Yes, and had that question not already been answered, I would have answered it. Especially given that the question was very beginner in nature, I presumed that on top of wanting to know about the different between a dynamic array and a linked list, it was worthwhile for the person who asked the question to be aware that the MFC containers are obsolete, and lacking in many features that are present in C++ containers.

bob16972 wrote:
Give me a friggin' break. That's just silly!


No, what's silly is that so many people use containers that they are going to outgrow, because they don't know any better.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: CList Vs CArray MFC Pin
Zac Howland7-Aug-06 4:11
Zac Howland7-Aug-06 4:11 
GeneralRe: CList Vs CArray MFC Pin
Christian Graus6-Aug-06 10:48
protectorChristian Graus6-Aug-06 10:48 
GeneralRe: CList Vs CArray MFC Pin
Zac Howland7-Aug-06 4:01
Zac Howland7-Aug-06 4:01 
GeneralRe: CList Vs CArray MFC Pin
Christian Graus6-Aug-06 11:01
protectorChristian Graus6-Aug-06 11:01 
GeneralRe: CList Vs CArray MFC Pin
Kevin McFarlane6-Aug-06 23:18
Kevin McFarlane6-Aug-06 23:18 
GeneralRe: CList Vs CArray MFC Pin
Christian Graus6-Aug-06 23:53
protectorChristian Graus6-Aug-06 23:53 
GeneralRe: CList Vs CArray MFC Pin
Zac Howland7-Aug-06 3:56
Zac Howland7-Aug-06 3:56 
GeneralRe: CList Vs CArray MFC Pin
Christian Graus7-Aug-06 10:32
protectorChristian Graus7-Aug-06 10:32 
GeneralRe: CList Vs CArray MFC Pin
Zac Howland7-Aug-06 14:48
Zac Howland7-Aug-06 14:48 
AnswerRe: CList Vs CArray MFC Pin
Hamid_RT6-Aug-06 3:08
Hamid_RT6-Aug-06 3:08 
AnswerRe: CList Vs CArray MFC Pin
David Crow7-Aug-06 3:59
David Crow7-Aug-06 3:59 
Questioncalling another window from dialog box and display data Pin
With_problem5-Aug-06 18:05
With_problem5-Aug-06 18:05 
AnswerRe: calling another window from dialog box and display data Pin
A_Fa5-Aug-06 20:10
A_Fa5-Aug-06 20:10 
GeneralRe: calling another window from dialog box and display data Pin
With_problem6-Aug-06 16:34
With_problem6-Aug-06 16:34 
AnswerRe: calling another window from dialog box and display data Pin
Vipin Aravind6-Aug-06 2:12
Vipin Aravind6-Aug-06 2:12 
GeneralRe: calling another window from dialog box and display data Pin
With_problem6-Aug-06 16:29
With_problem6-Aug-06 16:29 
AnswerRe: calling another window from dialog box and display data Pin
Hamid_RT6-Aug-06 3:04
Hamid_RT6-Aug-06 3:04 

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.