Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 899677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:15:31+00:00 2026-05-15T15:15:31+00:00

I need to break open a MS Word file (.doc) and extract its constituent

  • 0

I need to break open a MS Word file (.doc) and extract its constituent files (‘[1]CompObj’, ‘WordDocument’ etc). Something like 7-zip can be used to do this manually but I need to do this programatically.

I’ve gathered that a Word document is an OLE container (hence why 7-zip can be used to view its contents) but I can’t work out how to (using C++):

  1. open the OLE container
  2. extract each constituent file and save it to disk

I’ve found a couple of examples of OLE automation (eg here) but what I want to do seems to be less common and I’ve found no specific examples.

If anyone has any idea of either an API (?!) and tutorial for working with OLE I’d be grateful. Ditto any code samples.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:15:32+00:00Added an answer on May 15, 2026 at 3:15 pm

    It is called Compound Files, part of the Structured Storage API. You start with StgOpenStorageEx(). It buys you little for a Word .doc file, the streams themselves have a sophisticated binary format. To really read the document content you want to use automation, letting Word read the file. That’s rarely done in C++ but that project shows you how.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to break apart a string that always looks like this: something --
Need to apply a filter to a file like this: TUPAC_0006:1:1:2554:2356#0/1 0 * 0
i need to do something like echo data | cat Using echo data |
I have an input file as following. I need to break them into multiple
I need to convert a Word document into HTML file(s) in Java. The function
I would like to read text file in PHP which break or exit after
Suppose I need to break out of three or four nested for loops at
Suppose you are calling a function, where there's clearly a need to break down
I need to remove break from a specific div , i know how to
I need to force page break after each record from datasource. I tried <break

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.