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 vc++

Help File vc++

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++visual-studio
3 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.
  • S Offline
    S Offline
    sudeep_br
    wrote on last edited by
    #1

    I have created a help file for the application i have developed. The help file was created using help workshop in visual studio. i used the following code to call the help file in my application ShellExecute(NULL, "open", "C:\\Documents and Settings\\Pradeep.DEEPA\\Desktop\\DesktopSearch\\hlp\\HELP.hlp", NULL, NULL, SW_SHOWNORMAL); the problem with this code is that if i install the application in some other drives or folders it wont work coz i have specified the path for the help file in the code itself. can anyone tell me how this can be changed so that help file works even if the application is installed in different folders or drive

    S L 2 Replies Last reply
    0
    • S sudeep_br

      I have created a help file for the application i have developed. The help file was created using help workshop in visual studio. i used the following code to call the help file in my application ShellExecute(NULL, "open", "C:\\Documents and Settings\\Pradeep.DEEPA\\Desktop\\DesktopSearch\\hlp\\HELP.hlp", NULL, NULL, SW_SHOWNORMAL); the problem with this code is that if i install the application in some other drives or folders it wont work coz i have specified the path for the help file in the code itself. can anyone tell me how this can be changed so that help file works even if the application is installed in different folders or drive

      S Offline
      S Offline
      shilianghui2
      wrote on last edited by
      #2

      you can put the help file into the same directory of the application file,then you can use some api such as GetModuleFileName to get the path of application file.now you can get the directory of the help file by parsing the path of application file simply.

      1 Reply Last reply
      0
      • S sudeep_br

        I have created a help file for the application i have developed. The help file was created using help workshop in visual studio. i used the following code to call the help file in my application ShellExecute(NULL, "open", "C:\\Documents and Settings\\Pradeep.DEEPA\\Desktop\\DesktopSearch\\hlp\\HELP.hlp", NULL, NULL, SW_SHOWNORMAL); the problem with this code is that if i install the application in some other drives or folders it wont work coz i have specified the path for the help file in the code itself. can anyone tell me how this can be changed so that help file works even if the application is installed in different folders or drive

        L Offline
        L Offline
        Laxman Auti
        wrote on last edited by
        #3

        sudeep_br wrote:

        the problem with this code is that if i install the application in some other drives or folders it wont work coz i have specified the path for the help file in the code itself. can anyone tell me how this can be changed so that help file works even if the application is installed in different folders or drive

        You can put your file in the directory where you put youe executable and specifiy the path as ".\\HELP.hlp" Knock out 't' from can't, You can if you think you can :cool:

        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