HtmlHelp API

Coolea

New member
Joined
Aug 13, 2003
Messages
2
Trying to invoke calls to .CHM help using Win32 API.
The function is declared as follows
Public Declare Function HTMLHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _
(ByVal hWndCaller As Long, ByVal pszFile As String, ByVal uCommand As Long, _
ByVal dwData As Integer) As Long

The call to this function runs straight through and returns a Windows handle reference but no Help Window is invoked.

The test of the HTML API when I use the Microsoft Help Workshop picks out the targetted page fine.
:confused: Any suggestions
 
What code are you using? Are you using the HH_DISPLAY_TOPIC constant for the uCommand parameter?

Code:
Const HH_DISPLAY_TOPIC As Integer = &H0
Also, youll most likely need to convert the Long declares in the API to Integer for .NET, since ints in .NET are 32bit, whereas they are 16bit in VB6.
 
Thanks Guys,
the switch from declaring Long to Integer did the trick. Since I am new to .NET with no prior VB6 this was not easy to pick out so thanks again.

I am using the API instead of the Help class as I believe the Help is limited in how it can handle Popups. I want to have independant resource files for the user help instead of tooltip type strings embedded on each control.


:D Coolea
 
htmlhelp.lib and managed code in C#

Hi:

I am new in htmlhelp api.
I am hoping to use C# to access APIs provided by Microsoft HTML Help.
I am wondering if there is a way to access these apis using C#?
Are they exposed thru htmlhelp.lib?
How would I access them?

any hint and help is greatly appreciated.

thank you. :-)

Tommy
 

Similar threads

G
Replies
0
Views
243
Gowrisankarrs
G
I
Replies
0
Views
156
Innovators World Wide
I
M
Replies
0
Views
115
Mostafa Salaheldien
M
Back
Top