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. COM
  4. How to Wrap OLE Structured Storage

How to Wrap OLE Structured Storage

Scheduled Pinned Locked Moved COM
2 Posts 2 Posters 11 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.
  • V Offline
    V Offline
    Visual Herbert
    wrote on last edited by
    #1

    Someone still remembers the COM Compound File Binary format? Microsoft used to store their office files in this format. It is a great format, providing a FAT-like file system within a single file, via storages (directories) and streams (files). Microsoft's attempts to port Structured Storage technology to .NET were... sloppy, to put it friendly. For instance can you define sector sizes not only of 512 bytes, but also of 4,096 bytes. You can instruct the .NET code to use 4k, but when it doesn't work and you dig into the reference source you'll find, that they accept and comment on the argument, but do not use it. At all. I created a fully functional wrapper from scratch. It took some weeks to get this one right, but I'm glad to share the heavily documented results with you. Google Drive: Google Drive[^] (Rev. 4354) Chapter 4.5 (marginal notes 662 ff.): Structured Storages (byte access only as in the original) Chapter 4.6 (mn. 1124 ff.): General Structured Storages (added support for strings and all value types) Let me know what use you make of it. General design reviews are welcome. If there's a better forum, please let me know. I'm new here (SO refugee).

    O 1 Reply Last reply
    0
    • V Visual Herbert

      Someone still remembers the COM Compound File Binary format? Microsoft used to store their office files in this format. It is a great format, providing a FAT-like file system within a single file, via storages (directories) and streams (files). Microsoft's attempts to port Structured Storage technology to .NET were... sloppy, to put it friendly. For instance can you define sector sizes not only of 512 bytes, but also of 4,096 bytes. You can instruct the .NET code to use 4k, but when it doesn't work and you dig into the reference source you'll find, that they accept and comment on the argument, but do not use it. At all. I created a fully functional wrapper from scratch. It took some weeks to get this one right, but I'm glad to share the heavily documented results with you. Google Drive: Google Drive[^] (Rev. 4354) Chapter 4.5 (marginal notes 662 ff.): Structured Storages (byte access only as in the original) Chapter 4.6 (mn. 1124 ff.): General Structured Storages (added support for strings and all value types) Let me know what use you make of it. General design reviews are welcome. If there's a better forum, please let me know. I'm new here (SO refugee).

      O Offline
      O Offline
      Oingoboingo69
      wrote on last edited by
      #2

      Can I have a napkin to wipe my a$ş?

      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