Read file serialized with CArchive (MFC)
EmmanuelC last edited by
I need to read files containing data serialized with CArchive (from MFC). The data are only standard C types (bool, int, float, double). I am wondering if it is possible to read that kind of file with Qt, using QDataStream.
I haven't found anything on the web, but I'm not sure CArchive and QDataStream are compatible... Do you know if there is a way to read, from a Qt project, data saved with CArchive on a MFC project? Or do you know if there is a workaround for this?
Thank you and regards,
No they are not. QDataStream uses it's own serialization format which has nothing to do with CArchive.
JonB last edited by
Unfortunately for you, https://stackoverflow.com/questions/44993079/reading-a-serialized-binary-file-generated-by-carchive-mfc-in-python asks the same question but got no takers, which is probably indicative, you'll have to write your own.