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

C / C++ / MFC

 
AnswerRe: CList Vs CArray MFC Pin
ThatsAlok5-Aug-06 23:09
ThatsAlok5-Aug-06 23:09 
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 
bob16972 wrote:
Would you suggest using STL over the MFC container classes before you knew which was the best for the job? Would you suggest one over the other if you had no clue what the problem context was?


Now, I probably would tend to go for STL first. However, when I was last doing C++ it would also depend on whether I was writing new code or maintaining existing code. With the latter I tend to adapt to the context of the source code. Even when using STL extensively in an MFC app. I would still use CString because it is (a) more convenient and better adapted for use with MFC and (b) has better functionality than STL string. I think it may also be more efficient.


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


No.


bob16972 wrote:
I find it irresponsible to blindly slap a library on top of an arbitrary problem potentially misguiding people who are asking for solutions in certain contexts.


Yes, I agree with that. Even if STL containers are superior we don't know what the context is. Is the user maintaining legacy code? Does it already contain a bunch of CArray and CList data structures, etc.?






Kevin

GeneralRe: CList Vs CArray MFC Pin
Christian Graus6-Aug-06 10:46
protectorChristian Graus6-Aug-06 10:46 
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 

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.