Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help files 3

Status
Not open for further replies.

FILIPM

Programmer
Mar 11, 2003
40
BE
Dear Colleges,

I finally got to make a .chm file.
In my main program i did put
SET HELP TO merlijnhelp.chm
When I start the main program and i push F1 the .chm file opens. So far no problem.
The problem start when I open a form in my project and i push F1 i get the following message which i don't know what is means.
HH_HELP_CONTEXT called without a {MAP} section.

So I don't know how to go on futher.
Any help would be very usefull.
Thanks,

FILIP MERLIER
I work with vfp7.0
I did make my pages with dreamweaver en i made my chm file with HTML HELP workshop
 
FILIPM,

First, you need to create a text file which maps the topic IDs with your help pages. This is described in the Help Workshop's Help topic, "creating context-sensitive pop-up help".

Then, set the HelpContextID property for the form (and, if you wish, each control on the form). This ID should match the one in the text file.

Hope that makes sense.

Mike


Mike Lewis
Edinburgh, Scotland
 
Thank You Mike,

I did all this meaning :
1. I made a txt file with .topic topicname
2. I made a wordpad file named xxx.h as a header file with
the topics idnr.
3. I made a reference the init event of my form that points to the idnr.
4. I compiled it again with gave me a new chm file.


But stil a get the same message.
So what to do now ?

Thanks.

Filip
 
FILIPM

There are two parts to the creation of an .chm, the application that 'calls' the .chm, in this case a VFP app, and the HTML Help application that accepts the 'call' and locates the relevant .htm topic file within the compiled .chm.

faq764-2049 How can I create a header file for HTML Help?

will programatically create as many constants and HelpContextIds as required, through VFP code.

Your header file should be in a similar style as follows:-

#DEFINE TOPIC0001 1
#DEFINE TOPIC0002 2

1,2 etc are the HelpContextIDs of the various controls within a form.

To identity a HelpContextID, you may find it helpful to adopt a naming convention whereby each form starts from 0n00.

Your main form might be

#DEFINE TOPIC0100 100
#DEFINE TOPIC0101 101

The next form in your list might be

#DEFINE TOPIC0200 200
#DEFINE TOPIC0201 201

This naming convention will give you 100 HelpContextIDs per form.

You need to add the topic .htm to the list by clicking on the second button in the 'Project' tab in HTML Help workshop.

You then need to 'connect' TOPIC0100 to the .htm topic file in the .chm file.

Double click on [ALIAS] in the 'Project' tab, include your header file in the 'Map' tab, and then click on the 'Alias' tab.

Click on 'Add', enter the constant 'TOPIC0100', enter the relevant .htm filename and finish with a comment.

Save and compile the .chm.

There is a lot more to creating a .chm than this, but such questions should be put in the appropriate forum as they are off-topic to VFP.


FAQ184-2483 - the answer to getting answered.​
Chris [pc2]
 
Hello Dear colleges,

With all the help a got i begins to work.
Only one other question.
I do the installation of my program with installshield- express visual foxprow limited.
I added to my files the following things
Hhctrl.ocx
Itss.dll
Itircl.dll
Hh.exe
I did build my setup again, but only on my computer the help works(because i installed vfp7.0 sp1)
Any suggestions what I should do ?
Are there other dlls or ? to install ?

wfg,

FILIP MERLIER
 
Hello Mike,

I'am sorry but even with CHM file it doesn't work.
When I push on Help nothing happens

I'am probebly doeing something stupid but what ?
 
FILIPM,

You need to include FoxHHelp7.exe and FoxHHelpPS7.dll in the install.

It should should also be noted that FoxHHelp7.exe is a COM server so you will need to register it on the users' machines if you are not having Installshield handle this for you.

From the command prompt:

FoxHHelp7.exe /REGSERVER

Slighthaze = NULL
craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
Tank you all,

It finally works fine,

FILIP MERLIER
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top