Hi, I have created a service that logs errors to the NT application event log, this bit currently works fine. Within registry you can then specify the application/dll that will handle the event log descriptions with the EventMessageFile parameter.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application\W atchDog] "EventMessageFile"="D:\\Ben\\WorkingFolder\\Services\\Watchdog\\Watchdog.exe " This is supposed to build the description for the event based on the EventID, and replace the default ugly windows message of "The description for Event ID ( 71006 ) in Source ( Watchdog Service ) could not be found. It contains the following insertion string(s):" The problem I have is then getting the event log to pickup the correct message form the application. What I have tried is to create a StringTable in a resource file like below, but currently I have had no success and are still getting the default message. STRINGTABLE { 71006, "My custom event message here" } If anyone can shed some light on how to do this it would be greatly appreciated Regards Ben Vaughan --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/