Announcement

Collapse
No announcement yet.

Windows CHM Help Files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows CHM Help Files

    Can anyone tell me how to display Window's new compiled help files (.CHM) from a button? The older (.HLP) files could be accessed with WinHelp, but I can't seem to get that API to work.

    --Bob
    "It was too lonely at the top".

  • #2
    I've found 'some' solutions in MSDN to my problem...

    Windows uses the HH.EXE file to start a Help.CHM
    Therefore: x& = SHELL("hh.exe help.chm") works but...

    I'm using
    Win98 SE
    hh.exe exists in c:\Windows
    Does it exist in all versions Win95/98/2000 and Win NT in the Windows path?

    MSDN mentions using html.dll (in SDK - HTML Help References) but I can't find it even though I've got HTML Help compiler.

    Any other ideas would be welcomed.

    Thanks in Advance,
    --Bob



    ------------------
    "It was too lonely at the top".

    Comment


    • #3
      Bob,
      I've got Windows Millenium (Beta 3) and Windows 2000 and the hh.exe file exists in the Windows Path (C:\Windows and D:\WinNT, respectively). About that html.dll file, could that be a typo and be MSHTML.DLL instead? Just a thought.


      ------------------
      Wyman Belts
      [email protected]

      Comment


      • #4
        Code:
        Declaration:
        DECLARE FUNCTION HtmlHelp LIB "hhctrl.ocx" ALIAS "HtmlHelpA" _
                   ( BYVAL hwndCaller AS LONG, pszFile AS ASCIIZ, BYVAL uCommand AS LONG, BYVAL dwData AS LONG ) AS LONG
         
        When the user press the help-butten:
            CASE %IDC_BUT_HELP
                HtmlHelp 0, AppDir & "\MyApp.chm", 0, 0

        ------------------

        Comment

        Working...
        X