CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    1

    Serializing from File



    Can i open a file which was serialized in MFC in a Java program ???

    I wish to restore data from a document saved by a C++ program with MFC's Serialize().

    Thanks for your help,


    XN

  2. #2
    Join Date
    Apr 1999
    Posts
    19

    Re: Serializing from File

    I believe there is fundamental difference between how java serializes and how MFC does the serialization. And Therefore it should not be possible to recreate the object from the file which was created using MFC's serialize() method.
    May be if you understand how the MFC's serialize() method store the object info. thenyou can possible read from the file extract what ever info need.
    hope this will help.
    bye


  3. #3
    Join Date
    Apr 1999
    Location
    Canada
    Posts
    12

    Re: Serializing from File

    It's not so hard, but you have to do some extrawork. You should overwrite the writeObject and readObject methods of the classes serialized. If you worked with MFC, it should not bother you :-)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured