Click to See Complete Forum and Search --> : Serializing from File
XN
March 28th, 1999, 08:59 AM
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
dev
April 5th, 1999, 03:14 AM
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
Bogdan Matasaru
April 6th, 1999, 11:52 AM
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 :-)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.