About HTML Help URLs

Many of the HTML Help API commands require that you specify an HTML Help URL in the pszURL parameter.

An HTML Help URL specifies a compiled help (.chm) file or a topic within a help file. Usually, a window type in which to display the HTML Help URL is also specified.

Specifing an HTML Help URL

The following example shows the syntax to display a compiled help file:

where Helpfile.chm is the name of the compiled help file and Window name is the name of the help window in which you want the topic to appear.

To specify a topic within a compiled help file, use the following syntax:

where Helpfile.chm is the name of the compiled help file, Topic.htm is the name of the HTML file that you want to open and Window name is the name of the help window in which you want the topic to appear.

Specifing a topic file path

A compiled help file retains the folder structure in which it was organized before compilation, unless the option to compile flat has been selected.

For example, if a project is organized in three folders (one for HTML files, one for images, and one for style sheets), the help file will contain those same folders internally. The folder in which the project file resides is considered the root.

To correctly link to a topic file, you must specify the full path. The following example specifies an overview topic:

where Overview is a folder within the Html folder.

Notes


link to overview topic About the HTML Help API