Re: Link my help file to my application install path



Use only the file name, no directory spec.

This works as long as the help file is in same folder as the application and
as long as this folder is the "current" folder for the program. Because the
help file is searched for in the current folder (and in the Windows help
folder). If you start the application through a link or if you execute a
TOpenDialog/TSaveDialog in your program, the current folder may change at
runtime and the help file is no longer found.

A better way is to specify the help file *including* a fully qualified path at
runtime. You could do this in the OnCreate event of your main form:

Application.HelpFile := ExtractFilePath(Application.exename) + 'helpfile.hlp';

--
Alexander Halser
http://www.helpandmanual.com



.



Relevant Pages

  • Re: Message could not be displayed
    ... Please read the help file. ... Just right click on the Message List bar and select Columns and Add/Remove, resize as desired. ... Select the messages you desire to copy by highlighting them and then hold down the right hand mouse button and drag/drop them into the message list header of the folder you desire to use to retain them in Outlook Express. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Qbasic on XP cant open Help:
    ... Qbasic.exe executes ok either from within or outside the folder, but can't access its help file. ... I used the qbasic options 'help path' tab to enter the correct path but xp is using the wrong prog to open it with. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Change Contact Folder View
    ... Did you actually try the instructions I referred you to in the Help file? ... > not problem to customize for that. ... >>Russ Valentine ... >>> Contact Folder. ...
    (microsoft.public.outlook.contacts)
  • Re: Windows Mail ... group EMail
    ... is in the "attach" field along with a .dat file. ... destination email address 'invalid domain "": no dot found') I have made ... the help file says about clicking the toolbar and choosing "group" all I ... folder is not available to me when I go to send a new EMail. ...
    (microsoft.public.windows.vista.mail)
  • Re: Link my help file to my application install path
    ... Alexander Halser wrote: ... This works as long as the help file is in same folder as the ... through a link or if you execute a TOpenDialog/TSaveDialog in your ...
    (comp.lang.pascal.delphi.misc)