Results 1 to 5 of 5

Thread: Integrating HTML Help with VB5

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 1999
    Posts
    9

    Question

    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
    Jon Westcot, RLISYS

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Arrow

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 1999
    Posts
    9
    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
    Jon Westcot, RLISYS

  4. #4
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Talking

    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

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 1999
    Posts
    9
    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
    Jon Westcot, RLISYS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width