Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   To Store the Tree architecture permanently on disk. (http://www.go4expert.com/forums/store-tree-architecture-permanently-disk-t8025/)

Gurjeet Singh Batth 29Dec2007 13:19

To Store the Tree architecture permanently on disk.
 
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 29Dec2007 13:39

Re: To Store the Tree architecture permanently on disk.
 
The best way is to serialize the object so that it saves and restores back.

Gurjeet Singh Batth 29Dec2007 14:42

Re: To Store the Tree architecture permanently on disk.
 
Can We Archive the object of CTreeCtrl Class Directly ?

shabbir 30Dec2007 11:18

Re: To Store the Tree architecture permanently on disk.
 
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 4Jan2008 16:54

Re: To Store the Tree architecture permanently on disk.
 
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.
:)


All times are GMT +5.5. The time now is 05:47.