To Store the Tree architecture permanently on disk.

Go4Expert Member
29Dec2007,13:19   #1
Gurjeet Singh Batth's Avatar
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
Go4Expert Founder
29Dec2007,13:39   #2
shabbir's Avatar
The best way is to serialize the object so that it saves and restores back.
Go4Expert Member
29Dec2007,14:42   #3
Gurjeet Singh Batth's Avatar
Can We Archive the object of CTreeCtrl Class Directly ?
Go4Expert Founder
30Dec2007,11:18   #4
shabbir's Avatar
Quote:
Originally Posted by Gurjeet Singh Batth
Can We Archive the object of CTreeCtrl Class Directly ?
Not sure about that but you can try and see what happens.
Go4Expert Member
4Jan2008,16:54   #5
Gurjeet Singh Batth's Avatar
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.