Hi.
We have talked about helpfiles before. Seems there is something about finding
helpfiles which is quite flakey in some O/S. Today I found out what makes the
problem, but not the cause.

If the program is started by runonstart (run) then the application path does not
seem to be carried over to the application or whatever.
However, if the program is started after windows startup, then helpfile access
works fine.

Here is path info I use in formcreate:

  Appath := 
IncludeTrailingBackSlash(ExtractFilePath(ExpandFileName(Application.EXEName)));
  if fileexists(appath + 'spamdel.hlp') then
    application.HelpFile := appath + 'spamdel.hlp'
else application.HelpFile := 'spamdel.hlp'; //this line is really of no
consequence

So the question is, how do I make the O/S understand that any calls to file I/O
are to be made in the programs directory by any of this programs requests?

Some have reported other errors in file access of other fileio within this
software as well which is telling me there is a flakey path thing going on with
Windows.
thanks for any suggestions.
Alistair+

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to