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. Help File

Help File

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
7 Posts 4 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.
  • A Offline
    A Offline
    act_x
    wrote on last edited by
    #1

    How do I add Help File Functionality to my VC++ MDI application ? Please help

    L 1 Reply Last reply
    0
    • A act_x

      How do I add Help File Functionality to my VC++ MDI application ? Please help

      L Offline
      L Offline
      lucy 0
      wrote on last edited by
      #2

      compile your help files using HTMLHelp Workshop, so that you got the *.chm ready. Then in your method to serve the help menu item, just add: HWND hwnd = ::HtmlHelp(this->m_hWnd, szBuff, 0, HH_DISPLAY_TOPIC); to display the help file. remember to include the #include and the library.

      A G 2 Replies Last reply
      0
      • L lucy 0

        compile your help files using HTMLHelp Workshop, so that you got the *.chm ready. Then in your method to serve the help menu item, just add: HWND hwnd = ::HtmlHelp(this->m_hWnd, szBuff, 0, HH_DISPLAY_TOPIC); to display the help file. remember to include the #include and the library.

        A Offline
        A Offline
        act_x
        wrote on last edited by
        #3

        Thanks for the help but unfortunately I am getting a Linker error saying Linking... MainFrm.obj : error LNK2001: unresolved external symbol _HtmlHelpA@16 Debug/MDI2.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. MDI2.exe - 2 error(s), 0 warning(s) I copied the htmlhelp.h file to the VC98 include directory and copied the htmlhtlp.lib file to th eVC98 lib directory. Also I my .cpp I included like #include "htmlhelp.h" What am I Doing wrong ? Please help

        P 1 Reply Last reply
        0
        • A act_x

          Thanks for the help but unfortunately I am getting a Linker error saying Linking... MainFrm.obj : error LNK2001: unresolved external symbol _HtmlHelpA@16 Debug/MDI2.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. MDI2.exe - 2 error(s), 0 warning(s) I copied the htmlhelp.h file to the VC98 include directory and copied the htmlhtlp.lib file to th eVC98 lib directory. Also I my .cpp I included like #include "htmlhelp.h" What am I Doing wrong ? Please help

          P Offline
          P Offline
          Paul M Watt
          wrote on last edited by
          #4

          did you reference the HTMLHEML.lib file in your projects link settings? You need to actually reference the lib in your project, otherwise the linker will not know that it needs to link that file in. Hit Alt + F7 then go to the link tab. In the "Object/Library Modules" edit field add HTMLHelp.lib and that should fix your problems.


          Build a man a fire, and he will be warm for a day
          Light a man on fire, and he will be warm for the rest of his life!

          A 1 Reply Last reply
          0
          • P Paul M Watt

            did you reference the HTMLHEML.lib file in your projects link settings? You need to actually reference the lib in your project, otherwise the linker will not know that it needs to link that file in. Hit Alt + F7 then go to the link tab. In the "Object/Library Modules" edit field add HTMLHelp.lib and that should fix your problems.


            Build a man a fire, and he will be warm for a day
            Light a man on fire, and he will be warm for the rest of his life!

            A Offline
            A Offline
            act_x
            wrote on last edited by
            #5

            Thanks a lot for the suggestions . I was able to invoke a File. THanks

            1 Reply Last reply
            0
            • L lucy 0

              compile your help files using HTMLHelp Workshop, so that you got the *.chm ready. Then in your method to serve the help menu item, just add: HWND hwnd = ::HtmlHelp(this->m_hWnd, szBuff, 0, HH_DISPLAY_TOPIC); to display the help file. remember to include the #include and the library.

              G Offline
              G Offline
              Gaul
              wrote on last edited by
              #6

              What do you recommend for creating/editing the help file text/source? Gaulles

              L 1 Reply Last reply
              0
              • G Gaul

                What do you recommend for creating/editing the help file text/source? Gaulles

                L Offline
                L Offline
                lucy 0
                wrote on last edited by
                #7

                I am using HTMLHelp Workshop. You can download it from Microsoft's web site.

                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