-
May 29th, 2009, 01:09 AM
#1
Regarding saving of file in application
Well am designing an application where user can draw variouse shapes now the problem how can i provide him with saving of that layout and how can i also retrieve back all the contents???
does that has anything to do with serializabilty??
please dont give any msdn links it don't turn up on my net service.....
thanx
-
May 29th, 2009, 01:27 AM
#2
Re: Regarding saving of file in application
If you have a well defined class hierarchy for the various shapes, you can implement serialization in an effective way.
If not you can simple save the various shapes using their formulas as a binary file.
-
May 29th, 2009, 01:33 AM
#3
Re: Regarding saving of file in application
yes I have a heirachy for that shape classes and I have derived class from CObject and also have serialized in ar archive what next do i need to do??
-
May 29th, 2009, 01:36 AM
#4
Re: Regarding saving of file in application
You can use the >> and << operators to save and load.
-
May 29th, 2009, 05:26 AM
#5
Re: Regarding saving of file in application
Originally Posted by pinnachio
Well am designing an application where user can draw variouse shapes now the problem how can i provide him with saving of that layout and how can i also retrieve back all the contents???
does that has anything to do with serializabilty??
please dont give any msdn links it don't turn up on my net service.....
thanx
There's no way you'll be able to program C++ without documentation and MSDN is a great source for it. You can't come here every time you have a documentation question.
MSDN has a sample application called Scribble that shows you how to do what you're asking. I'd recommend finding a way to get access to it.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|