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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

assign chm help topics with HelpContextIDs?

Status
Not open for further replies.

gabster

Programmer
Oct 23, 2001
192
US
Hi all...

I need to assign some of the topics of my .chm help (HTMLHelp) with certain items on a VB project using the HelpContextID property. How can this be done?

thanks,
gabi.
 
hi, here u go

==== Create a file alias.h
//// This has alias to the actual html file to be displayed
90_Help = Welcome.html;
0_help = Upload.html;

==== Create a file map.h
/// This has your HelpContextId's (ex 1610)
#define 90_Help 1610
#define 0_help 1000
#define 1_help 1001

open ur HelpProject and click on the HTMLHELP API Information (4th on the right side of the "Project Tab")
and add the files)

Assign the HelpContextId's to the controls and set the Project Help file propery to the .chm file
(in the Project-> Properties option)

for more dope visit ->
FAQ222-1111

Hope this helps.... else write back

[cheers]
Niraj [noevil]
 
thanks a lot ufobaby...

Hmm... I think I don't get the part with:

==== Create a file alias.h
//// This has alias to the actual html file to be displayed
90_Help = Welcome.html;
0_help = Upload.html;

What does "90_Help" and "0_help" means?

Also I did that API including (for both tabs - the Map and Alias one - this is another confusion) but I keep getting an "HH_HELP_CONTEXT called without a [MAP] section" - which is not true because I include my id.h file in both the map and alias section...

This is what I use in my vb call:

Private Sub Command3_Click()
With hHelp
.CHMFile = App.Path & "\dumbo.chm"
.HHTopicID = 1000
.HHWindow = "Main"
.HHDisplayTopicID
End With
End Sub

Do you mind if I send my sample .hhp project zipped for a look?

thanks a lot,
gab.
 
I got it! I got it! I got it! I got it! I got it!

sorry for bothering...

thanks a LOT,
Gabi.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top