Questions tagged [compound-file]

9 questions
21
votes
5 answers

Open source embedded filesystem (or single file virtual filesystem, or structured storage) library for C

I'm not sure what the "general" name of something like this might be. I'm looking for a library that gives me a file format to store different types of binary data in an expanding single file. open source, non-GPL (LGPL ok) C interface the file…
Ioan
  • 2,382
  • 18
  • 32
8
votes
2 answers

How can I treat a section of a file as though it's a file itself?

I have data stored in either a collection of files or in a single compound file. The compound file is formed by concatenating all the separate files, and then preceding everything with a header that gives the offsets and sizes of the constituent…
Rob Kennedy
  • 161,384
  • 21
  • 275
  • 467
4
votes
1 answer

Is IStorage's Compound File Implementation thread-safe?

I'm using IStorage's Compound File Implementation from C# (StgCreateDocfile). Is it safe to access one IStorage / IStream instance from multiple threads, provided I synchronized the reads and writes myself? Or are there any COM issues that might be…
Stefan Schultze
  • 9,240
  • 6
  • 35
  • 42
3
votes
4 answers

Is there an open-source alternative to Windows compound files?

I'm trying to save a couple of files to a container file. The files can be modified later which means the container might have to be enlarged. The user should only see this container as a single file in the file system. The application is written in…
Andre
  • 1,577
  • 1
  • 13
  • 25
2
votes
1 answer

Access violation when calling EnumElements of IStorage

I am reading a structured storage file. And trying to get all child elements of the root structure. But I am getting access violation exception while doing so. Here is the native…
fhnaseer
  • 7,159
  • 16
  • 60
  • 112
1
vote
1 answer

Ole Attachment IStorage format specifications

I'm trying to understand the format and specifications of Outlook Ole Attachments at the compound file level of things, the Ole Attachment in hand is a Picture (Device Independent Bitmap), I produced the Msg file by composing RTF text email with…
RaniDevpr
  • 410
  • 2
  • 13
1
vote
0 answers

Using OpenMCDF to modify xls file results in corrupted output

I'm working on a project where I need to edit the contents of existing office files. I'm using the open source library OpenMCDF (https://sourceforge.net/p/openmcdf) which provides easy access to access the data in compound ole files. I've found it…
Rossco
  • 1,052
  • 11
  • 24
0
votes
0 answers

How to extract document properties of .docx,.xlsx,.pptx using StgOpenStorageEx() function?

I am using StgOpenStorageEx() to get document properties like Title,Subject,Tag,Authors,etc.. I am successfully getting all these properties of .doc,.xls,.ppt files. But Not getting anything for .docx,.xlsx,.pptx StgOpenStorageEx() is successfully…
jaykr
  • 81
  • 7
-1
votes
1 answer

LPSTREAM unable to read into CString

I'm attempting to read text into a CString using an LPSTREAM, but it doesn't seem to be working correctly, here is the code that I'm calling: static HRESULT UTL_ReadStreamTxt(MyStorage* pSrcStg, const char* pszStream, CString* myCStr, int size) { …
Austin A
  • 566
  • 2
  • 15