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. how can I deal with the " big problem"

how can I deal with the " big problem"

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpquestion
3 Posts 3 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.
  • Z Offline
    Z Offline
    zhangyifei
    wrote on last edited by
    #1

    When I call this function "COleClientItem::CreateCloneFrom" to create a copy of the specified OLE item. And use this function to support undo operations. found that store file that including ole item will grow greater and greater! ZHANGYIFEI

    M 1 Reply Last reply
    0
    • Z zhangyifei

      When I call this function "COleClientItem::CreateCloneFrom" to create a copy of the specified OLE item. And use this function to support undo operations. found that store file that including ole item will grow greater and greater! ZHANGYIFEI

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      Theoretically, OLE structured storage files can get cleaned up. In practice, the structured storage implementation causes deleted streams to remain in the file forever. Which is why Word document files keep on growing. The only way to clear out dead information is to create a new storage file, then copy all the streams you want to keep from the old one.

      A 1 Reply Last reply
      0
      • M Mike Dimmick

        Theoretically, OLE structured storage files can get cleaned up. In practice, the structured storage implementation causes deleted streams to remain in the file forever. Which is why Word document files keep on growing. The only way to clear out dead information is to create a new storage file, then copy all the streams you want to keep from the old one.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        can you give some code or example? thanks!

        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