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. CMyDocument::Serialize(CArchive& ar) is not called

CMyDocument::Serialize(CArchive& ar) is not called

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 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.
  • L Offline
    L Offline
    lucy 0
    wrote on last edited by
    #1

    I have an SDI application, with a form view, which has a few property sheets displayed. When I click on "Open" button from the tool bar, to my surprise, CMyDocument::Serialize(CArchive& ar) is not called, and the title is updated by my selected file name. How can this happen?!:doh::confused: TIA!

    L 1 Reply Last reply
    0
    • L lucy 0

      I have an SDI application, with a form view, which has a few property sheets displayed. When I click on "Open" button from the tool bar, to my surprise, CMyDocument::Serialize(CArchive& ar) is not called, and the title is updated by my selected file name. How can this happen?!:doh::confused: TIA!

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      lucy wrote:

      How can this happen?!

      Probably by writing broken code... like the code you posted yesterday.

      led mike

      L 1 Reply Last reply
      0
      • L led mike

        lucy wrote:

        How can this happen?!

        Probably by writing broken code... like the code you posted yesterday.

        led mike

        L Offline
        L Offline
        lucy 0
        wrote on last edited by
        #3

        :~ I don't think I posted any code yesterday. and I didn't make any changes to CMyDocument, only updated the CMyDocument::Serialize (), added code to serialize my member variables to &ar.

        L 1 Reply Last reply
        0
        • L lucy 0

          :~ I don't think I posted any code yesterday. and I didn't make any changes to CMyDocument, only updated the CMyDocument::Serialize (), added code to serialize my member variables to &ar.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          lucy wrote:

          I don't think I posted any code yesterday.

          You are correct. My bad, I confused you with someone else. :-O

          lucy wrote:

          updated the CMyDocument::Serialize (), added code to serialize my member variables to &ar.

          can you post your ::Serialize() code?

          led mike

          L 1 Reply Last reply
          0
          • L led mike

            lucy wrote:

            I don't think I posted any code yesterday.

            You are correct. My bad, I confused you with someone else. :-O

            lucy wrote:

            updated the CMyDocument::Serialize (), added code to serialize my member variables to &ar.

            can you post your ::Serialize() code?

            led mike

            L Offline
            L Offline
            lucy 0
            wrote on last edited by
            #5

            sure, I will. I am not at work today. Caught a cold. I will post the code tomorrow. Thank you very much!

            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