logoalt Hacker News

How WinHelp Files Work

26 points • by frostbyte7 • last Thursday at 12:51 PM • 22 comments • view on HN

Comments

publlus_enigma • today at 3:20 AM

Help files were one of the best aspects of earlier versions of Windows: having consistent, readily accessible offline help across applications helped to learn software quickly.

In general today I miss having high quality documentation for software.

➕ show 3 replies
dcrazy • today at 4:06 AM

The official WinHelp authoring tool was… WordPad. Or really, any RTF editor that supported the custom footnote glyphs that the WinHelp compiler turned into a .hlp file. But I would’ve been nervous about using WinWord in case of unwanted additional formatting.

For some reason this baffled me at the time, even though it’s really no different from DocBook to HTML conversion. Maybe it was inexperience, or maybe it was because HTML was its own well-known thing while .hlp was opaque, but I always thought that the footnotes etc. were semantically preserved to the final artifact, and I couldn’t wrap my head around how they became popups and hyperlinks.

Later, Compiled HTML Help arrived which was significantly less mysterious. Maybe because the input and output were still obviously HTML, packaged into a .chm with some metadata. Or maybe I’d just learned more.

➕ show 1 reply
JdeBP • today at 3:31 AM

The hyperlinked text file doco is based upon Pete Davis's 1993 articles in Schulman's "Undocumented Corner" in Dr Dobb's Journal. (https://dl.acm.org/doi/10.5555/178300.178317)

Pete Davis actually expanded and corrected those articles, and they are chapter 4 of xyr book, co-authored with Mike Wallace, Windows Undocumented File Formats, published by Taylor & Francis in 1997.

Unlike the txt file and the original DDJ articles, the book has diagrams. (-:

jjordan • today at 4:02 AM

Reminds me of way back in 2000 when I was writing my first commercial application in very bad VB6 code, I really wanted to add contextual help to my app, so I purchased a program called dotHLP which provided a nice (if buggy) GUI for creating and editing your own .HLP file. It was great.

Just looked up the dev. It was Gary Handley, the director of Auric Visions Ltd. who first got started all the way back in 1995. They eventually sold to EC Software, the creator of Help & Manual.

markus_zhang • today at 2:47 AM

Man this is fun! I have always wondered how those .hlp files work, but never did anything about it!

enneff • today at 2:55 AM

Kinda sad how there used to be a central way that programs would document themselves, but it’s not at all the case today.

tacostakohashi • today at 3:06 AM

This brings back some memories... there was a bit of a WinHelp scene in the 90s of authoring tools, and people using WinHelp for general reference material rather than specifically software documentation... basically because the WinHelp viewer was included with Windows 3.x and Windows 95.

It gave you the basics of hypertext, with a nice table of contents, indexing, search and even image maps. If anything, it provided most of what you'd want to publish some nice documentation or reference material, but without all the animations, javascript, background sounds, and other ways to make websites terrible.

➕ show 4 replies
Neywiny • today at 3:41 AM

I miss this. Nowadays it would be a zip of a webpage. Which is certainly worthwhile, but these esoteric, get every last byte down types of approaches are nice to see sometimes.

➕ show 1 reply
fithisux • last Thursday at 1:09 PM

Excellent, not Rust specific.