Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Serialization questions

Serialization questions

Scheduled Pinned Locked Moved C / C++ / MFC
jsonquestion
2 Posts 2 Posters 0 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.
  • A Offline
    A Offline
    Alton Williams
    wrote on last edited by
    #1

    I have two questions pertaining to serialization.

    1. I have nested classes but want save each class into seperate files how do go about doing this
      and2. If want to able to open files in range of different extensions e.g *.csv, *.prn and *.txt. How is this achieved?

    Again many thanks Alton

    S 1 Reply Last reply
    0
    • A Alton Williams

      I have two questions pertaining to serialization.

      1. I have nested classes but want save each class into seperate files how do go about doing this
        and2. If want to able to open files in range of different extensions e.g *.csv, *.prn and *.txt. How is this achieved?

      Again many thanks Alton

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      1. Using MFC serialisation mechanisms, you don't. The assumption is made that a single file will contain the entire document. Indeed, use is made of a 'class dictionary' within an MFC archive file, unless you redo the serialisation from scratch. 2. There's a KB article (141921) which covers this nicely. Steve S

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups