Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. adding chm help file to project

adding chm help file to project

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hel
    wrote on last edited by
    #1

    I know that this is probably a very obvious solution but I'm just not getting anywhere with it. I tried setting the m_pszHelpFilePath to point to my chm file but I then get a blah.chm is not a windows help file or file is corupted error message. If I double click on the .chm file, it opens without any problems. Does anyone know what I'm doing wrong? well hell doesn't want you and heaven is full. Tom Waits

    P 1 Reply Last reply
    0
    • H Hel

      I know that this is probably a very obvious solution but I'm just not getting anywhere with it. I tried setting the m_pszHelpFilePath to point to my chm file but I then get a blah.chm is not a windows help file or file is corupted error message. If I double click on the .chm file, it opens without any problems. Does anyone know what I'm doing wrong? well hell doesn't want you and heaven is full. Tom Waits

      P Offline
      P Offline
      Pavel Klocek
      wrote on last edited by
      #2

      The online help in MFC uses WinHelp format (.hlp) files. Using the HTML help (.chm) requires more coding - you need to replace cals to WinHelp API with calls to HTMLHelp API. You can find an example here[^]. Pavel Sonork 100.15206

      H N 2 Replies Last reply
      0
      • P Pavel Klocek

        The online help in MFC uses WinHelp format (.hlp) files. Using the HTML help (.chm) requires more coding - you need to replace cals to WinHelp API with calls to HTMLHelp API. You can find an example here[^]. Pavel Sonork 100.15206

        H Offline
        H Offline
        Hel
        wrote on last edited by
        #3

        Thank you!!:-D well hell doesn't want you and heaven is full. Tom Waits

        1 Reply Last reply
        0
        • P Pavel Klocek

          The online help in MFC uses WinHelp format (.hlp) files. Using the HTML help (.chm) requires more coding - you need to replace cals to WinHelp API with calls to HTMLHelp API. You can find an example here[^]. Pavel Sonork 100.15206

          N Offline
          N Offline
          ns
          wrote on last edited by
          #4

          I downloaded the sample at the link you gave, and its missing #include "htmlhelp.h" No such file exists. I thought maybe its a windows file, but I dont have one on my machine. Any ideas? Thanks, ns

          H P 2 Replies Last reply
          0
          • N ns

            I downloaded the sample at the link you gave, and its missing #include "htmlhelp.h" No such file exists. I thought maybe its a windows file, but I dont have one on my machine. Any ideas? Thanks, ns

            H Offline
            H Offline
            Hel
            wrote on last edited by
            #5

            Go to the folowing link and follow instructions http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/vchowenablinghtmlhelpsupportforapplication.asp[^] well hell doesn't want you and heaven is full. Tom Waits

            1 Reply Last reply
            0
            • N ns

              I downloaded the sample at the link you gave, and its missing #include "htmlhelp.h" No such file exists. I thought maybe its a windows file, but I dont have one on my machine. Any ideas? Thanks, ns

              P Offline
              P Offline
              Pavel Klocek
              wrote on last edited by
              #6

              You need to install HTMLHelp Workshop (free MS download). Pavel Sonork 100.15206

              N 1 Reply Last reply
              0
              • P Pavel Klocek

                You need to install HTMLHelp Workshop (free MS download). Pavel Sonork 100.15206

                N Offline
                N Offline
                ns
                wrote on last edited by
                #7

                That makes sense! Thanks, ns

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups