Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1470

.HLP file loader

$
0
0
There's some issues when loading Help files in windows 10.

I upgraded from windows 7 to 10, and maybe this is where this problem lies. But I saw all over the same questions on the internet how to fix it.

You can convert it, with a lot of trouble and in the end you're just more frustrated than when you started.

Or you can download winhlp32.exe and open the help files trough it. The problem is, you have to open the exe first, then search for the help file you want to open.

This is what I have done:
I have placed the winhlp32.exe file in my own "Help Loader" folder.
Then I right clicked on any .hlp file and select the "Opened with..."
I set the program to "Always open" with the Help Loader

Just a simple program (with Option Explicit (pun intended)). The form will never been seen anyway, as just after the help file was loaded, the Loader end.

...and Sam, I still love my chr$(34)...:D

Help Loader.zip

The Readme file will give more info where the winhelp32.exe can be downloaded from one of my domains.

Oh. I forgot: No attachments.

So here it is:

Code:

Option Explicit

Private Sub Form_Load()
     
  Dim BlaV As String, aD$, aKa$, xX, MP$, i
     
  If Right$(App.Path, 1) = "\" Then
      MP$ = App.Path
  Else
      MP$ = App.Path + "\"
  End If
 
  If Len(Command) > 4 Then
      If Command = "" Then
        End
      End If
     
      aD$ = Chr$(34)
     
      If Left$(Command, 1) = aD$ Then
        aKa$ = Mid$(Command, 2, Len(Command) - 2)
      Else
        aKa$ = Command
      End If
  Else
      End
  End If
 
  xX = Shell(MP$ + "winhlp32.exe " + aKa$, vbNormalFocus)
 
  End

End Sub


...and forgot again:

Quote:

Winhelp is here and can be downloaded as is, or as a zip file:

http://thezir.com/winhelp/winhlp32.exe
http://thezir.com/winhelp/winhlp32.zip

Paste the winhelp file into the same folder as the help loader. It will not work otherwise, unless of course, if you change the program accordingly.

Coding will be here:

http://thezir.com/winhelp/Help Loader.zip (This file have a normal space between the words. VBForums does not accept it as an URL)
http://thezir.com/winhelp/Help%20Loader.zip (This file have two words splitted by a chr$(255). VBForums accept it as one URL. Funny? No. Just a fact)

Attached Files

Viewing all articles
Browse latest Browse all 1470

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>