The helpviewx.pbi file is intended as an include file to be added to the PureBasic project:
XIncludeFile "helpviewx.pbi" UseModule HelpViewX
The code file can be compiled on its own for testing purposes. This will show a small window with some buttons. The top button will request the directory path of the Help files and then open the Help.