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. How to use help file

How to use help file

Scheduled Pinned Locked Moved C / C++ / MFC
htmlhelptutorial
6 Posts 6 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.
  • M Offline
    M Offline
    MKC002
    wrote on last edited by
    #1

    To open a help (chm) file i use below function ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm"),NULL,NULL,SW_SHOW); and it works. But when i want to open any particular page of chm file using below function it does not work ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW); Please suggest how to open any page

    D M H V 4 Replies Last reply
    0
    • M MKC002

      To open a help (chm) file i use below function ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm"),NULL,NULL,SW_SHOW); and it works. But when i want to open any particular page of chm file using below function it does not work ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW); Please suggest how to open any page

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      MKC002 wrote:

      ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW);

      Have you tried:

      ShellExecute(this->m_hWnd, _T("open"), "hh.exe", _T("HelpSample.chm::/page1.html"), NULL, SW_SHOW);

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

      C 1 Reply Last reply
      0
      • M MKC002

        To open a help (chm) file i use below function ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm"),NULL,NULL,SW_SHOW); and it works. But when i want to open any particular page of chm file using below function it does not work ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW); Please suggest how to open any page

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        I'm not sure if ShellExecute() "open" will do that for you like that. You could try something like

        CreateProcess("hh.exe", " drive:\\path\\HelpSample.chm::/page1.html", ...);

        *edit* or try David's method above :)

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        1 Reply Last reply
        0
        • M MKC002

          To open a help (chm) file i use below function ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm"),NULL,NULL,SW_SHOW); and it works. But when i want to open any particular page of chm file using below function it does not work ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW); Please suggest how to open any page

          H Offline
          H Offline
          Hans Dietrich
          wrote on last edited by
          #4

          If this is a help (chm) file you have created yourself, you can open any page by using the topic ID stored for that page, using function HtmlHelp().

          Best wishes, Hans


          [Hans Dietrich Software]

          1 Reply Last reply
          0
          • M MKC002

            To open a help (chm) file i use below function ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm"),NULL,NULL,SW_SHOW); and it works. But when i want to open any particular page of chm file using below function it does not work ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW); Please suggest how to open any page

            V Offline
            V Offline
            venkatmakam
            wrote on last edited by
            #5

            This will work, ::HtmlHelp(NULL, _T("HelpSample.chm::/html/page1.html"), HH_DISPLAY_TOPIC, 0);

            http://www.mono-project.com/Main\_Page

            1 Reply Last reply
            0
            • D David Crow

              MKC002 wrote:

              ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW);

              Have you tried:

              ShellExecute(this->m_hWnd, _T("open"), "hh.exe", _T("HelpSample.chm::/page1.html"), NULL, SW_SHOW);

              "One man's wage rise is another man's price increase." - Harold Wilson

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #6

              Shouldn't be also _T("hh.exe")?

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              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