• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

Help Contents,Index and search from menu

I have added a *.chm help file to my application.I want to run the Contents,Index and search  from the Menu on the MDIform.How do I make the call?
0
visualbasic
Asked:
visualbasic
1 Solution
 
WolfgangKoenigCommented:
The HTML Help ActiveX control (Hhctrl.ocx) provides a rich feature set for help systems. Key features include: an expanding table of contents, keyword search, shortcuts, and pop-up help topics. The control is one of the authoring components that ships with Microsoft HTML Help. It is also included with many third-party HTML Help authoring tools.

The control provides functionality for two types of help systems:

A compiled help (.chm) file
The control uses both an Internet Explorer DLL (Shdocvw.dll) and the HTML Help compiler to offer a variety of features. Users view compiled help files in the Help Viewer. Compiled help files often ship with the programs that they document.

Uncompiled HTML files on a Web site:
The control uses Microsoft Internet Explorer to provide a subset of its feature set. The features of HTML Help can be used on a Web site to present a wide variety of content, from Web-based help to a Web site focused on entertainment.

Notes
The HTML Help ActiveX control is designed to work with Internet Explorer and the Shdocvw.dll component. It does not include the design-time support that is necessary to use it with development tools, such as Microsoft Visual Basic Scripting Edition and Microsoft Visual C++.

For more information about ActiveX technology, see Microsoft's Component Object Model (COM) technologies Web site.
Accessing the HTML Help API
The functionality provided by the HTML Help API resides in the HTML Help ActiveX control (Hhctrl.ocx), which is installed when you set up HTML Help Workshop.

To gain access to the HTML Help API, you link to the Htmlhelp.lib file and include the Htmlhelp.h file in your Windows program. Both of these files are installed on your system when you set up HTML Help Workshop.

About Htmlhelp.lib
Htmlhelp.lib is an export library that exposes the HTML Help API and loads Hhctrl.ocx only when HtmlHelp() is called. In addition, Htmlhelp.lib locates the registered Hhctrl.ocx.

By default, Htmlhelp.lib is located in the following directory:

C:\Program Files\HTML Help Workshop\Lib

About Htmlhelp.h
Htmlhelp.h is a header file that contains the declarations for HtmlHelp(). It must be included in your Windows program.

By default, Htmlhelp.h is located in the following directory:

C:\Program Files\HTML Help Workshop\Include

Notes
Copy Htmlhelp.lib to your Lib folder and Htmlhelp.h to your Include folder, so the compiler can find these files.
If you are using the HTML Help API with Windows 95 and Internet Explorer 3.x, you must either set up DCOM for Microsoft Windows® 95, version 1.2, or set up Internet Explorer, version 4 or later. Otherwise, the calls that you make to HtmlHelp() may not be processed correctly.


;) WoK
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now