Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Read file serialized with CArchive (MFC)
Forum Updated to NodeBB v4.3 + New Features

Read file serialized with CArchive (MFC)

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 531 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EmmanuelC
    wrote on last edited by
    #1

    Hello,
    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,

    Emmanuel

    JonBJ 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      No they are not. QDataStream uses it's own serialization format which has nothing to do with CArchive.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • E EmmanuelC

        Hello,
        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,

        Emmanuel

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @EmmanuelC
        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.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved