Johann,
Your PC Windows folders will have plenty of CHM files. Copy one of them into your working directory, and you can then start it with HH.EXE from the command prompt. You should be able to start it using START_PPROCESS@ as well. The big problem is getting the path to the chm file right. Here is my routine, which is a callback for a HELP menu item:
INTEGER FUNCTION IHELPSYS()
C --------------------------
CHARACTER*(256) PNAME
INCLUDE <WINDOWS.INS>
C -----------------------------------------------------------------
IHELPSYS = 1
CALL GET_PROGRAM_NAME@ (PNAME)
CALL UPCASE@ (PNAME)
N = LEN_TRIM (PNAME)
IF (PNAME (N-5:N) .EQ. 'XX.EXE') THEN
N = N - 6 ! Assumes XX.EXE
CALL START_PPROCESS@('HH.EXE',PNAME(1:N)//'XXHelp.chm')
ELSE
DO 10 I=1,N
J = N + 1 - I
IF (PNAME(J:J) .EQ. '\') GO TO 20
10 CONTINUE
RETURN
20 CALL START_PPROCESS@('HH.EXE',PNAME(1:J)//'XXHelp.chm')
ENDIF
END
Not elegant, not foolproof - but finds the CHM file in the folder where the program XX.EXE was installed. Maybe, (and I can't remember) it even finds the path if the program file was renamed!
Now the problem is to create your own CHM. I tracked down Vizacc HelpMaker to www.softpedia.com where it is still available for download. After downloading and installing it, you need to create a project, and compile it. This application can create other help formats as well, but CHM is the one you want. How sophisticated you get with cross references (hyperlinks), keywords, colours, images, fonts etc is up to you.
In principle, you can open this helpfile at any topic you choose, but I have never persevered long enough to find out how.
My routine above assumes that you have installed your application somewhere like C:\Program Files\XX. Installation (or Setup) is an important part of giving your application a professional feel. I also use a freeware program for this called Innosetup (Jordan Russell software), and this puts my CHM files into the same folder as my EXE.
If you want me to send you any example files etc, send me a private message with where to send it...
Eddie