open help file on netwerk drive

61 views
Skip to first unread message

C.J. Koot

unread,
Feb 19, 2026, 9:46:43 AMFeb 19
to Harbour Minigui
Hello group,

In my program there is a helpfile (chm) which can be executed through the F1 key.
FUNCTION OpenHtmlHelp( nTopicNr )

LOCAL cParam := '', cHelpFile := 'plantenkennis.chm'

IF nTopicNr <> NIL
cParam += '-mapid ' + ALLTRIM(STR( nTopicNr, 10 )) + ' ' + ALLTRIM( cHelpFile )
ELSE
cParam += '"' + ALLTRIM( cHelpFile ) + '"'
ENDIF

_Execute( _HMG_MainHandle, 'Open', 'HH.exe', ALLTRIM( cParam ), , 5 )

RETURN (.T.)
 Normally the program and the databases run on the C-drive . There are some users that have the databases on an netwerk drive and only the program on the c-drive. But when they press F1 the help file is empty. The contents table is shown, but the rest is blank. I assume that is because the help-file is also on the netwerk drive. I can place the helpfile on the c-drive, but how can i open this help file.

Rene Koot

Grigory Filatov

unread,
Feb 19, 2026, 11:51:40 AMFeb 19
to Harbour Minigui
Hello Rene,

Thanks for your request.

Hopefully the solution will be to use the full local path to the CHM file on drive C.

Replace:  
cHelpFile := 'plantenkennis.chm'

With:  
cHelpFile := HB_FNameDir( HB_ProgName() ) + '\' + 'plantenkennis.chm'

(Place `plantenkennis.chm` in the same folder as your EXE on C:.)  

This opens the local copy correctly.

HTH,
Grigory

четверг, 19 февраля 2026 г. в 15:46:43 UTC+1, plke...@gmail.com:

C.J. Koot

unread,
Feb 19, 2026, 12:39:27 PMFeb 19
to jdelvalle, Harbour Minigui

Hello jdelvalle and Grigory,

Yes, that was the trick. Sometimes it is so simple that one doesn't see it 😳. I will look more closely next time.

Rene

Op 19-02-2026 om 16:17 schreef jdelvalle:
cHelpFile := 'C:\XXXPATH\plantenkennis.chm'
--
Visit our website on https://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/minigui-forum/dac3f7e8-011d-4915-8260-9e3040045502n%40googlegroups.com.


Valteçom José Martins

unread,
Feb 19, 2026, 1:21:07 PMFeb 19
to C.J. Koot, Harbour Minigui
Good afternoon,

I have a project that uses a CHM file for help, but since the system underwent some changes, I stopped improving the HELP file.

In my systems, I use databases in a folder that can be local or on a server, and the executable on each machine. For this, I created a configuration file where I indicate where the databases are located, and you can proceed in the same way. Create a "config.INI" file in the local folder of each machine and inside this file, put the path where the databases are located and also where your HELP.CHM file is located.

Example:
fbases := "\\server\data"
fhelp := "\\server\help"
or
fhelp := "c:\system\help"
cHelpFile := fhelp + '\plantenkennis.chm'
It's very easy to create an .INI file; in my case, I have an executable program that already does this.

I hope this helps. Valteçom
Uberaba MG
Brazil

--
Visit our website on https://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/minigui-forum/dac3f7e8-011d-4915-8260-9e3040045502n%40googlegroups.com.


--
Uberaba MG Brasil
Fone: 
(34) 99659-1423 (Whatsapp)

Ao encaminhar esta mensagem, por favor:
1. Apague o meu e-mail e o meu nome.
2. Apague também os endereços dos amigos antes de reenviar.
3. Encaminhe como cópia oculta (Cco ou Bcc) aos SEUS destinatários.
Agindo sempre assim dificultaremos a disseminação de vírus, spans e banners.
Reply all
Reply to author
Forward
0 new messages