To Store the Tree architecture permanently on disk.

Discussion in 'MFC' started by Gurjeet Singh Batth, Dec 29, 2007.

  1. Gurjeet Singh Batth

    Gurjeet Singh Batth New Member

    Joined:
    Nov 1, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    Punjab
    Hello EveryBody
    I am working on a MFC application and using a CTreeCtrl object.
    I want to store the tree structure permanently, in order to display the same tree to the user when he logs in again.

    Can CArchive do this for me? or is there any other way to do this.
    Plz Help . Thanks
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    The best way is to serialize the object so that it saves and restores back.
     
  3. Gurjeet Singh Batth

    Gurjeet Singh Batth New Member

    Joined:
    Nov 1, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    Punjab
    Can We Archive the object of CTreeCtrl Class Directly ?
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Not sure about that but you can try and see what happens.
     
  5. Gurjeet Singh Batth

    Gurjeet Singh Batth New Member

    Joined:
    Nov 1, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    Punjab
    Hi everybody,
    I found no direct means of storing the tree architecture on disk.

    Thanks for your support Shabbir. You are always the first person who helps me.
    Thanks again.

    Shabbir I have Developed my own way to store tree architecture on file.
    It was a great fun.
    BBye.
    :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice