Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

read Word file

0 views
Skip to first unread message

zu...@larrun.univ-pau.fr

unread,
Mar 12, 1998, 3:00:00 AM3/12/98
to

Hello !

I'm writing a program with C++ and I need to read Word (.DOC) file with C++
But I don't know what format have MS-Word file. Where can I find information
about it ??

Help !! I would be very appreciated !!

e-mail: zu...@larrun.univ-pau.fr

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading

Phlip

unread,
Mar 12, 1998, 3:00:00 AM3/12/98
to

zu...@larrun.univ-pau.fr escribió:

> I'm writing a program with C++ and I need to read Word (.DOC) file with C++
> But I don't know what format have MS-Word file. Where can I find information
> about it ??

Your best bet (unless you have no deadline but you need amazing speed when
reading) is to use either Visual Basic or the VC++ #import command to open Word
as an ActiveX object and send it commands to read the file and translate its
contents to text. This also insulates you from any upgrades to the file format;
MS will change the file more readily than they will mess with their programs'
object models.

Start with the VB because the ActiveX Template Library is not for the squeamish.

-- Phlip
======= http://users.deltanet.com/~tegan/home.html =======

Dan Evens

unread,
Mar 12, 1998, 3:00:00 AM3/12/98
to

zu...@larrun.univ-pau.fr wrote:

> I'm writing a program with C++ and I need to read Word (.DOC) file
> with C++
> But I don't know what format have MS-Word file. Where can I find
> information
> about it ??

I tried to get this information from Microsoft about 2 years ago. After
they
sent me a non-disclosure form, which I signed and returned, they sent me

a document and some software, which did not wind up helping very much.
My only suggestion is you get your best persuasion hat on and send the
most persuasive letter to Microsoft that you can.

This tightness with file formats confused me then and still does.
Excel's file
formats are made available through the Excel software development kit
which you can walk to any large computer book store and buy. It is still

proprietary and copyrighted, but at least you can get a very complete
and reasonably easy to read description of Excel files. It allowed me,
with a reasonable effort, to write file conversion routines into and out
of
Excel. Same is true of WordPerfect. You can phone them up and
order a software development kit (at least you could 3 years ago, have
not tried since then) and it had every nut and bolt about WP files.

Why is Word as tight as a frog's behind?
Dan Evens

George Palma

unread,
Mar 14, 1998, 3:00:00 AM3/14/98
to

On Thu, 12 Mar 1998 23:24:34 -0500, Dan Evens wrote:

->zu...@larrun.univ-pau.fr wrote:
->
->> I'm writing a program with C++ and I need to read Word (.DOC) file
->> with C++
->> But I don't know what format have MS-Word file. Where can I find
->> information
->> about it ??
->

Chek out this site:
http://www.wotsit.demon.co.uk/


George Palma
Loomis CA
+++++ Remove NOSPAM. from my address to e-mail me +++++

George Palma

unread,
Mar 14, 1998, 3:00:00 AM3/14/98
to
0 new messages