Opening a HLP file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HornyAZNBoy
    New Member
    • May 2007
    • 3

    Opening a HLP file

    I've just wrote a hlp file to a program I just completed. Now I want to open that hlp file with a command on my program. I've tried using the Call Shell(C:/WINDOWS/Cris/desktop/MS Skill Book/Skill Book.exe) method and it works fine, but now I want to send it to a friend and I want him to be able to open that hlp file, but his computer name isn't Cris. Any suggestions?

    I've also tried this method and it is not working.

    Command1_Click( )
    CommonDialog1.H elpFile = "help.hlp"
    CommonDialog1.S howHelp
    MsgBox ("Help File Showed")

    CommonDialog1
    HelpCommand 1
    HelpContext 1
    HelpFile help.hlp

    Help.hlp
    I have my help file in the same folder as my program.
  • HornyAZNBoy
    New Member
    • May 2007
    • 3

    #2
    Anyone going to help?

    Comment

    • fplesco
      New Member
      • Jul 2007
      • 82

      #3
      Originally posted by HornyAZNBoy
      I've just wrote a hlp file to a program I just completed. Now I want to open that hlp file with a command on my program. I've tried using the Call Shell(C:/WINDOWS/Cris/desktop/MS Skill Book/Skill Book.exe) method and it works fine, but now I want to send it to a friend and I want him to be able to open that hlp file, but his computer name isn't Cris. Any suggestions?

      I've also tried this method and it is not working.

      Command1_Click( )
      CommonDialog1.H elpFile = "help.hlp"
      CommonDialog1.S howHelp
      MsgBox ("Help File Showed")

      CommonDialog1
      HelpCommand 1
      HelpContext 1
      HelpFile help.hlp

      Help.hlp
      I have my help file in the same folder as my program.
      maybe you can use APP.PATH

      the code would look like this

      Call Shell(APP.PATH & "\Skill Book.exe")

      or you can embed that file thru an OLE object

      like this

      OLE1.CreateLink APP.PATH & "\Skill Book.exe"
      OLE1.DoVerb

      Comment

      Working...