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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem with CList, Carray,....

Problem with CList, Carray,....

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
4 Posts 2 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.
  • L Offline
    L Offline
    leonwoo
    wrote on last edited by
    #1

    Hi expert, I have a problem with the CList class. Microsoft does not provide a copy constructor for CList. Is there any way or alternatives that i can use beside than CList. I have tried to return a CList from a function but the compiler told me that there is no constructor to copy the list. I dont want to develop my own list because i dont have time for that. STL list is tedious to use and compatibility errors often pop up. So please help. thank you. :confused: leonwoo

    D 1 Reply Last reply
    0
    • L leonwoo

      Hi expert, I have a problem with the CList class. Microsoft does not provide a copy constructor for CList. Is there any way or alternatives that i can use beside than CList. I have tried to return a CList from a function but the compiler told me that there is no constructor to copy the list. I dont want to develop my own list because i dont have time for that. STL list is tedious to use and compatibility errors often pop up. So please help. thank you. :confused: leonwoo

      D Offline
      D Offline
      Daniel Ferguson
      wrote on last edited by
      #2

      Create a CList in the fn that calls this fn, then pass the CList by ref or by a pointer to the fn, then fill the list in the fn. You can return the number of items added to the list as a success/ failure check. Regards, Daniel

      L 1 Reply Last reply
      0
      • D Daniel Ferguson

        Create a CList in the fn that calls this fn, then pass the CList by ref or by a pointer to the fn, then fill the list in the fn. You can return the number of items added to the list as a success/ failure check. Regards, Daniel

        L Offline
        L Offline
        leonwoo
        wrote on last edited by
        #3

        hi, Thanks for your solution Daniel but i don't understand what it means by fn. Can you please give me an example code so that i can get the whole picture. :) Thank you leonwoo

        L 1 Reply Last reply
        0
        • L leonwoo

          hi, Thanks for your solution Daniel but i don't understand what it means by fn. Can you please give me an example code so that i can get the whole picture. :) Thank you leonwoo

          L Offline
          L Offline
          leonwoo
          wrote on last edited by
          #4

          Any more Suggestion?? Please........ leonwoo

          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