Re: Is CArray best for this...



"AliR (VC++ MVP)" <AliR@xxxxxxxxxxxxx> wrote in message
news:3vtjj.38664$lD6.1065@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
During lunch I was thinking about your problem, and I was thinking about
CList. Reading through the documentation of CList it doesn't appear that
it moves things around. But navigating a CList is a bit more complex than
CArray, since things are not index based, and you have to traverse the
CList with Position variable. But its something to think about.

Thank you all for your help. So CArray is simply not the way to go. If
CArray can move things around, then it can't be very efficient (performance
wise) as each element in my CArray actually potentially contains another
CArray.

This is only a small prototyping exercise at the moment, so I will
investigate changing to stl::vector or CList today.


.



Relevant Pages

  • Writing to and reading from same file = crash :(
    ... I am running 2 modaless windows. ... Basically I am reading line by line from the file, ... line (by its tab) and putting each item ... // some logic to put each tokenized items into CArray ...
    (microsoft.public.vc.mfc)
  • Re: [OT, link] unsure how to implement MFC CArray with class
    ... > one like an MFC type. ... If I were to use std::vector instead of CArray, how would I implement a simple ... As for reading the documentation - after almost 20 ... Like I said, I'll bite. ...
    (comp.lang.cpp)

Loading