Why can't my app find it's help file ? | Thread profile
Thread profile page for "Why can't my app find it's help file ?" on http://www.codeguru.com.
This report page is a snippet summary view from a single thread "Why can't my app find it's help file ?", located on the Message Board at http://www.codeguru.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity, which are reported in a table below.
Additional thread profile information is also shown in the following ways:
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a thread's popularity and/or exact posting volumes at any given reporting period.
Started 8 months, 1 week ago (2008-11-02 18:10:00)
by Mike Pliam
I have built a Wizard generated SDI application using VC 8.0 (Visual Studio 20005). I selected the HTML Help option from the Wizard. After the initial build, I substituted another set of help files in the 'hlp' directory of my app. The substituted files include the usual files: HTMLDefines.h myappname.hhk (Index) myappname.hhc (Table of Contents) myappname.hhp...
Started 8 months, 1 week ago (2008-11-03 08:30:00)
by krmed
Since your error message indicates that the app is looking for a .hlp file, I suspect that VS2008 still default to WinHelp. Set a breakpoint in the InitInstance of your app and look at the m_pszHelpFilePath member - it probably gives your appname.HLP. If that's true, add the following line to the CONSTRUCTOR or your WinApp object: Code: EnableHtmlHelp(); Now when you look ...
Started 8 months, 1 week ago (2008-11-03 13:50:00)
by Mike Pliam
krmed - Thanks. Yes, I was missing the EnableHtmlHelp(); statement in the app constructor. Clean/Rebuild with that addition changed the m_pszHelpFilePath extension from *.HLP to *.CHM. Subsequently, the Html help file was activated by F1 or menu Help/Help Contents selection, but only if I manually provide a default (Wizard generated) CHM file to either the Release or Debug directory. ...
Started 8 months, 1 week ago (2008-11-03 14:00:00)
by TheCPUWizard
Create a BRAND NEW project with a help file. Make sure it is working properly. Then look at the properties of each file. Sounds like one of your "Build Actions" is not correct....
Started 8 months ago (2008-11-05 17:59:00)
by Mike Pliam
TheCPUWizard wrote: Quote: Create a BRAND NEW project with a help file. Make sure it is working properly. Then look at the properties of each file. Sounds like one of your "Build Actions" is not correct.... Good idea. I have done that repeatedly. Unfortunately, without a basic understanding of how HTML Help files are generated by the compiler, ...
Started 8 months ago (2008-11-05 23:46:00)
by TheCPUWizard
Did you look specifically at the properties (in solution explorer) for each file???? There are a number of properties [I dont have a dev bos in front of me] that are all used to control the build process. Additional information is stored in the project file. This file CAN be edited, but care must be taken as there is only minimal error checking (since it is "supposed" to be maintained ...
Started 8 months ago (2008-11-06 05:12:00)
by krmed
Mike, Sorry I haven't responded sooner, and unfortunately, I can't make this a long explanation since I'm currently in the middle of a Domain migration project. What you most likely need to do is first, insure that your .hhp file is in the project. Right click on that file and create a Custom Build step - that step will need to run the HTML Help Compiler and that is what creates the ....
Started 8 months ago (2008-11-06 13:19:00)
by krmed
OK Mike, Now that I have a few minutes over lunch, here's a sample of the custom build script I have that takes the .hhp file and all the associated help files and makes a compiled .chm file: Code: echo off REM -- First make map file from Microsoft Visual C++ generated ..\srcesource.h echo // MAKEHELP.BAT generated Help Map file. Used by MyProg.hhp. >"..\hlp\MyProg.hm" echo. ...
Started 8 months ago (2008-11-07 16:31:00)
by Mike Pliam
krmed - Thanks for taking the time to respond so carefully. Sorry to be so slow, but I really don't completely understand what you are suggesting. You wrote: Quote: insure that your .hhp file is in the project. Right click on that file and create a Custom Build step - that step will need to run the HTML Help Compiler and that is what creates the .chm file...
Started 8 months ago (2008-11-10 12:59:00)
by Mike Pliam
krmed - Great information. Never knew about that. When I substitute my appname for MyProg.* in the script you provided, then do a clean/rebuild, I get the following message (and still no HTML Help *.chm is rebuilt). Quote: LineGraph : warning PRJ0042 : The 'Outputs' property for the custom build step for file 'LineGraph.hhp' is not set. The custom ...
Size: 1,321 bytes
Customize:
Top contributing authors for Why can't my app find it's help file ?
Thank you krmed. You have been of enormous help. Actually, I couldnt get any of your scripting to work, so I took The CPUWizard's advice, I just built a new program of the exact same name and options and then copied the *.hhp properties from the new program and now IT WORKS !! Well, sort of. I still can't get F1 help to work. But it does build the help files as it should, provided one adds the required scripting to the *.hhp...
Mike, The Outputs tab tells it where to place the output file. Click on it and you'll get an edit box to enter the information. In my case, I use Code: ..\..\bin\$(TargetName).chm You may want somthing like Code: .\Debug\$(TagetName).chm Hope that helps.
Did you look specifically at the properties (in solution explorer) for each file???? There are a number of properties [I dont have a dev bos in front of me] that are all used to control the build process. Additional information is stored in the project file. This file CAN be edited, but care must be taken as there is only minimal error checking (since it is "supposed" to be maintained by the program - which will always do the...
Related threads on "CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions":
Another Usability Rant: Just found a button I had been... Another Usability Rant: Just found a button I had been looking up and down for in an app; no mention in help file, completely mismatchedicon
9:54 PM Oct 19th from twitterrific