1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,293
    Likes Received:
    365
    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,293
    Likes Received:
    365
    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