Board index » delphi » HCP error 4639 and Word 97

HCP error 4639 and Word 97

I hope I'm bugging the right newsgroup with this question...

For my Delphi 1.0 project I've written an RTF help file in Word 6.0, which
used to compile into a HLP file without problems, using HCP (HC505).

Recently I've bought Office 97, containing Word 97. When I save a file as
RTF from Word 97 and then compile it with HCP I get error 4639 at byte
offset ... (always the very last byte of the RTF). Even opening an old RTF
and then saving it without modification causes the same problem.

I've even tried saving the document as Word 6.0/95, as this turns out to be
RTF too, without improvement.
The friendly Microsoft support people tell me that RTF is RTF and that if I
have a problem its with HCP, not with Word.

Has anyone had this problem? And if so, did you find an anser (apart from
regretting the waste of money for Word 97 and reinstalling Word 6.0)?

Oh yeay, HCW is no option because the helpfiles are to be used in Win
3.11+.

Thanks for your time. Any help, advise or answers will be greatly
appreciated!

--
-----------------------------
Michel van Heuven
Krijger raadgevend ingenieursburo
Dordrecht, NL
Mailto: kry...@worldonline.nl
-----------------------------

 

Re:HCP error 4639 and Word 97


Michel van Heuven <kry...@worldonline.nl> wrote:

Quote
> The friendly Microsoft support people tell me that RTF is RTF

That's wrong. RTF comes in different 'flavours'. Word 6.0 uses RTF 2.0,
and there have been problems with the change from RTF 1.0 before - for
example with the Microsoft Multimedia Viewer Compiler (which is based on
the Help Compiler).

You can use the 'FC' (file compare) command (or a good word processor or
HEX-editor) to see if there is a difference between the new and the old
RTF code (caution if you open it in a word processor: RTF is a MS-DOS
File!).

I suggest to ask not Microsoft (IMHO they will wait until everybody
knows it is a bug, then they will 'agree with the majority'), but to ask
any producer of Help-File editing tools insted. They know exactly which
editors work fine with the Help compiler and which not.

If there IS a solution, it could be a 'dirty' one - maybe, MS expects
you to edit the RTF file manually (or lets you write a 'program' to do
this for you) to fix the bug... this was the answer from MS for what i
had to do to get my multimedia project to work.

--
Michael.Jus...@ac.{*word*104}city.de
---------------------------------------------------------------------
"Time flies like an arrow. Fruit flies like a banana." (Groucho Marx)

Re:HCP error 4639 and Word 97


Quote
Michel van Heuven wrote:

.....
Quote

> Recently I've bought Office 97, containing Word 97. When I save a file as
> RTF from Word 97 and then compile it with HCP I get error 4639 at byte

....
Michel,
WordPad, the Win95 text editor, can save as RTF. So, you could read in
the RTF file ex Word 97, change a byte (space, whatever) and resave. It
*might* work...
HTH
Peter Hill.

Other Threads