To Store the Tree architecture permanently on disk.

Gurjeet Singh Batth's Avatar, Join Date: Nov 2007
Go4Expert Member
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
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
The best way is to serialize the object so that it saves and restores back.
Gurjeet Singh Batth's Avatar, Join Date: Nov 2007
Go4Expert Member
Can We Archive the object of CTreeCtrl Class Directly ?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.
Gurjeet Singh Batth's Avatar, Join Date: Nov 2007
Go4Expert Member
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.