Regarding saving of file in application
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Regarding saving of file in application

  1. #1
    Join Date
    May 2009
    Posts
    88

    Post 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

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    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.
    _Superman_
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  3. #3
    Join Date
    May 2009
    Posts
    88

    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??

  4. #4
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: Regarding saving of file in application

    You can use the >> and << operators to save and load.
    _Superman_
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  5. #5
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,228

    Re: Regarding saving of file in application

    Quote Originally Posted by pinnachio View Post
    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center