[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 7.286::visualc

Title:Microsoft Visual C/C++
Moderator:PLUGH::needle
Created:Tue Mar 16 1993
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1121
Total number of notes:4385

1106.0. "Any hints on how to create help files under Visual C++ V5.0 (win95)" by NOTAMI::A_ANDERSON (CX03 2/H13 NSU/VAX MacGhille Aindrais) Sun Mar 30 1997 18:28

    Hello all,
    
    I am new at Visual C++ so its probably me doing something stupid.  I
    wrote a dialog based application, and thought it would be a good idea
    to add a help file.  I read the docs and double clicked on the .rtf
    file from the file view.  Made my changes and tried to save it.  MSDEV
    dies with a divide by zero error.  Norton crash gaurd caught it.  but
    you cannot exit the RTF edited under Visual Studio 97 with or without
    saving the file.
    
    OK so I tried word for Windows 97 it can handle RTF files.  Saved the
    file but when the help file compiles the log file complains about a
    MC4002 error due to a corrupt RTF file at offset 296.  Looking at the
    RTF file with a HEX editor does not show anything unusual, but that
    does not mean there is nothing there.  Offset 296 appears to be whre the
    PEN colors are being set up.  I tried using Wordpad  to edit the RTF
    file with the same results.  
    
    If i stick to the default files that the APP wizard creates then the
    .HLP file is created ok.  But they are not much use unless they can
    be modified.
    
    Perhaps Winword & wordpad have a difference in opinion on the RTF file
    structure than the Visual Studio 97 has.  Or Im doing something
    completly stupid.
    
    Any hints woiuld be appreciated.
    
    So far I have spent three times as much time tring to write a help file
    than I have writting the application.
    
    Alan 
      
    
    
    
    
T.RTitleUserPersonal
Name
DateLines
1106.1Answer my own questionNOTAMI::A_ANDERSONCX03 2/H13 NSU/VAX MacGhille AindraisTue Apr 01 1997 13:4628
Its in the release notes.

HCW.exe v4.01 is not compatable with the RFT format from Office 97.  This at
least explains why the Help compiler complains about the RTF file format written
by Word 97.  You need to save the file in Word6.0 or Word95 RTF format.  There
must be a common .DLL file that WordPad and Word 97 uses as wordpad RTF files
are not compatable with the help compiler either.  Perhaps this same DLL or
another that came with Word 97 is responsible for the DEV Studio crashes with a
divide by zero error, when I tried to close the editor

I any case there is a unsupported Help Workshop that can be installed and its
compatable with Office 97 RTF files.  It does a good job of creating .HLP files.
   

But compiles fail if it tries to produce a help file since the Help workshop
installs new DLL that is not compatible with the older HCW.exe V4.01.

So you need to either compile the help files from the Help Workshop and not from
the DEV Studio, or save the .RTF files in word 6.0 or word 95 RTF format.  




Alan