[fpc-pascal] TEventLog, RegisterMessageFile and {$R fclel.res}
Reinier Olislagers
reinierolislagers at gmail.com
Sat Feb 16 11:53:33 CET 2013
Hi all,
While adapting some code to use Eventlog I found RegisterMessageFile,
which the help helpfully explains (it registers the file used by Windows
to show certain strings in the event viewer).
Decided I liked/needed that and did this:
{$R fclel.res}
...
FLog.RegisterMessageFile('');
However, on compiling I get a "can't open resource file" error.
Is copying over
($fpcdir)\fcl-base\src\win\fclel.res
to the application directory the best solution?
Thanks,
Reinier
More information about the fpc-pascal
mailing list