CList troubles
-
Hi, Im trying to put a CList into a struct or class and include that in another CList, does anyone know how to do this whithout getting errors? Cheers
I think I know what you mean, this example uses stl::list ( and so should you ), but it compiles fine. #include using std::list; struct myStruct { list lInt; int i; char * pChar; }; int main(int argc, char* argv[]) { list myList; return 0; } Christian
-
Hi, Im trying to put a CList into a struct or class and include that in another CList, does anyone know how to do this whithout getting errors? Cheers
This one got me too, caused me no end of hassles. Best thing to do is forget the MFC CList related class and go straight for the STL ones. Michael Life’s not a song. Life isn’t bliss. Life is just this. It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
-
Hi, Im trying to put a CList into a struct or class and include that in another CList, does anyone know how to do this whithout getting errors? Cheers
The same thing is valid for all MFC containters (CArray). Use
std::list
. Best regards, Alexandru Savescu P.S. Interested in art? Visit this!