There is nothing else to add (normally). Quite a few applications follow the MS convention and actually log a HRESULT value, hence the funny values that you see.
Ie If you log event# 106, then your message/event file must have event#106 present. If you follow the MS examples that come with the message compiler - from memory you will then end up in trouble (as I did first time around), as they use macros in the message compiler to do bit twiddling for HRESULT values. You can check the registry to see if your event file is registered correctly if that will help. Myles. -----Original Message----- From: Vaughan, Benjamin Carl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 16 October 2001 2:13 p.m. To: Multiple recipients of list delphi Subject: RE: [DUG]: Event Log interaction with Delphi Thanks Nello & Myles, I have used MC and created a .rc and .bin file which I have been able to successfully add to my Delphi project and compile it. I then have used a useful little application called Resource Hacker, and can confirm that the message table is now within the application. Unfortunately the application is still not logging correctly. On further examination with Resource Hacker on other applications that use the application log (Norton Antivirus and ASP.DLL) I noticed that the messages that I create come in as I specify them (i.e. specify 106 in the MC file, and it ends up as 106 in the application). All other applications seem to have unusual numbers in the application itself eg. 106, "Test Message (%1!s!)." (taken from my App) 1090453506, "\n%1" 1090453507, "\n%1" (taken from the Norton Antivirus application.) (Norton AV responds to EventID's such as 7,14..etc which are no where to be seen in their message file) What I am wondering is if there is some constant that I need to add to my EventID's or anything else. Regards Ben --------------------------------------------------------------------------- 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/ --------------------------------------------------------------------------- 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/