[fpc-pascal] TEventLog.FileName location: Change default file location for filename without change unit code.

DaWorm daworm at gmail.com
Tue Sep 21 19:45:05 CEST 2010


On Tue, Sep 21, 2010 at 9:39 AM, Michael Van Canneyt <michael at freepascal.org
> wrote:

>     begin
>>       Result:=ChangeFileExt(Paramstr(0),'.log');
>>     end;
>>
>     Function TEventLog.DefaultFileName : String;
>

On Windows, this can be problematic.  Win7 for sure, usually Vista, and any
version of Windows that has had its security tightened won't let you write
files into the application folder.

Jeff.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100921/43d47b26/attachment.html>


More information about the fpc-pascal mailing list