Search code examples
c++processchmwinhelp

How can I open a help file (chm or so) from my GUI developed in VC++ 2008?


I'm trying to add some help to my GUI developed in VC++ 2008. I want to compile a chm file, or a hlp file that can be accessed from my menu. Anyone can give me any idea about how to do this?

Thanks a lot


Solution

  • Under HKLM\Software\Microsoft\Windows\HTMLHelp , create an entry
    named help.chm
    value C:\path to\help file.chm

    Then to open the chm at a particular topic call

     HtmlHelp(m_hWnd, "Help.chm", HH_DISPLAY_TOPIC, NULL);