Posted by Fox on 2000-06-27
I'm in C++, MFC. The CList class doesn't use indexes like CArray, instead it uses POSITION variables. Why? Do these variables ensure that any stored POSITION variable still referrs to the same spot on the list even if the list size changes? In other words, when I add/subtract to/from a CList, will all POSITION variables I may have stored prior to the change still referr to the same spot on the list? /* Remember, complex problems almost always have simple solutions!
Previous post | Next post | Timeline | Home