|
-
Apr 26th, 2000, 05:38 AM
#1
Thread Starter
New Member
Hi All:
Well, the Subject pretty much says it all -- I would like to know if HTML-based Help can be integrated into VB5 and, if so, how do I do it? It's pretty easy to hook into standard .HLP files in VB5, but I haven't a CLUE (or the requisite documentation!) about hooking into HTML-based Help.
Please, someone, shed some light on this burning issue!
Thanks!
Jon
-
Apr 26th, 2000, 05:49 AM
#2
transcendental analytic
You could ShellExecute the html file from vb and will be shown in default browser
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 26th, 2000, 12:31 PM
#3
Thread Starter
New Member
True, I could certainly shell out, but how would that get me to the appropriate help topic? Is there no way to integrate this "new and improved" help system with VB5?
Jon
-
Apr 26th, 2000, 04:18 PM
#4
Hyperactive Member
J
Try these:
Code:
Public Const HH_DISPLAY_TOPIC = &H0
Const HH_SET_WIN_TYPE = &H4
Const HH_GET_WIN_TYPE = &H5
Const HH_GET_WIN_HANDLE = &H6
Const HH_DISPLAY_TEXT_POPUP = &HE
Const HH_HELP_CONTEXT = &HF
Const HH_TP_HELP_CONTEXTMENU = &H10
Const HH_TP_WM_HELP_MENU = &H11
Declare Function HtmlHelp1 Lib "hhctrl.ocx" Alias "HtmlHelpA" (ByVal hwndCaller As Long, _
ByVal pszFile As String, ByVal uCommand As Long, ByVal dwData As Long) As Long
Declare Function HtmlHelp2 Lib "hhctrl.ocx" Alias "HtmlHelpA" (ByVal hwndCaller As Long, _
ByVal pszFile As String, ByVal uCommand As Long, ByVal dwData As String) As Long
retrn = HtmlHelp1(0, "C:\Temp\Help.chm", HH_DISPLAY_TOPIC, 0)
retrn = HtmlHelp2(0, "C:\Temp\Help.chm", HH_DISPLAY_TOPIC, "My_Help.htm")
These let you call a compiled HTML help files and display a topic using either a reference number (htmlhelp1) or using the name of a file (htmlhelp2)
Hope it helps

Dan
-
Apr 27th, 2000, 03:18 AM
#5
Thread Starter
New Member
Thanks, Dan -- that seems to be EXACTLY what I need! (Oh, if only I'd looked at the MSDN Library first, I could have spared everyone my stupid question . . . .)
Jon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|