Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CList troubles

CList troubles

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dor
    wrote on last edited by
    #1

    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

    C M A 3 Replies Last reply
    0
    • D Dor

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • D Dor

        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

        M Offline
        M Offline
        Michael P Butler
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • D Dor

          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

          A Offline
          A Offline
          Alexandru Savescu
          wrote on last edited by
          #4

          The same thing is valid for all MFC containters (CArray). Use std::list. Best regards, Alexandru Savescu P.S. Interested in art? Visit this!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups