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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. loading .chm help file with vc++

loading .chm help file with vc++

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

    hi, i made a .chm help file.. i've create a command for it in the menu already.. i was wondering how do i load it? do i use shellexecute or is there another command in vc++ 7 that's create for loading .chm file? also, will this .chm file work in win95/98/nt/2000? thanx in advance.

    H 1 Reply Last reply
    0
    • T trustno1

      hi, i made a .chm help file.. i've create a command for it in the menu already.. i was wondering how do i load it? do i use shellexecute or is there another command in vc++ 7 that's create for loading .chm file? also, will this .chm file work in win95/98/nt/2000? thanx in advance.

      H Offline
      H Offline
      HENDRIK R
      wrote on last edited by
      #2

      The fucntion

      HWND HtmlHelp(
      HWND hwndCaller,
      LPCSTR pszFile,
      UINT uCommand,
      DWORD dwData) ;

      can be used to display .chm files. It's declared in htmlhlp.h. I think it should work on all OS you mentioned (even if I don't really know if you need a IE > 4.0 or anything further)

      T 1 Reply Last reply
      0
      • H HENDRIK R

        The fucntion

        HWND HtmlHelp(
        HWND hwndCaller,
        LPCSTR pszFile,
        UINT uCommand,
        DWORD dwData) ;

        can be used to display .chm files. It's declared in htmlhlp.h. I think it should work on all OS you mentioned (even if I don't really know if you need a IE > 4.0 or anything further)

        T Offline
        T Offline
        trustno1
        wrote on last edited by
        #3

        hi, i delcared htmlhelp.h and attempt to run HtmlHelp off one of the event handler, but i kept on getting error message saying that HtmlHelpA doesn't take 4 argument.. i've checked out the documentation on HtmlHelp, but it's not very helpful.. not much information given.. do you know where that i can find a example on hooking up .chm using HtmlHelp function? thx.

        H 1 Reply Last reply
        0
        • T trustno1

          hi, i delcared htmlhelp.h and attempt to run HtmlHelp off one of the event handler, but i kept on getting error message saying that HtmlHelpA doesn't take 4 argument.. i've checked out the documentation on HtmlHelp, but it's not very helpful.. not much information given.. do you know where that i can find a example on hooking up .chm using HtmlHelp function? thx.

          H Offline
          H Offline
          HENDRIK R
          wrote on last edited by
          #4

          The problem is that both CWinApp and CWnd delcare a HtmlHelp function, too. And this function takes only 2 parameters. So I think you've to call the function as a global one, thus calling ::HtmlHelp. If you need more information you should have a look at MSDN. There're many examples dealing with this topic.

          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