Re: Link my help file to my application install path
- From: Hans-Peter Diettrich <DrDiettrich1@xxxxxxx>
- Date: Sat, 14 Oct 2006 00:55:42 +0200
Alexander Halser wrote:
Use only the file name, no directory spec.
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';
IMO this scheme applies to many file types. The "logical" folder is fixed (app, user...), but unknown at compile time. The "physical" folder can be determined at runtime, either hard coded (as above), or by evaluating a prefix like %appdir% or {$DELPHI}, which returns a single directory or an search path. Some pathes are determined during installation, others when a project is opened (prj-dir), and they can all be stored in an INI file or in the registry, if necessary.
DoDi
.
- References:
- Link my help file to my application install path
- From: nek
- Re: Link my help file to my application install path
- From: Bjorge
- Re: Link my help file to my application install path
- From: nek
- Re: Link my help file to my application install path
- From: Alexander Halser
- Link my help file to my application install path
- Prev by Date: Re: MemProof, Live Pointers, and Long Strings
- Next by Date: Re: multiplication yield strange results
- Previous by thread: Re: Link my help file to my application install path
- Next by thread: MemProof, Live Pointers, and Long Strings
- Index(es):
Relevant Pages
|