Ben There is some bit fiddling going on here - i have never looked at it too closely - after I got it working i'm almost afraid to.
But - here are the first few lines of .h file that gets created. These comments document the extra bits that get or'd into the message IDs. I think this probably explains some of what you are asking about. (you can ignore the "CAT" stuff - it has to do with message "categories" that this app uses. -ns http://www.roserox.co.th #define CAT_BASIC 1 // // Values are 32 bit values layed out as follows: // // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 // +---+-+-+-----------------------+-------------------------------+ // |Sev|C|R| Facility | Code | // +---+-+-+-----------------------+-------------------------------+ // // where // // Sev - is the severity code // // 00 - Success // 01 - Informational // 10 - Warning // 11 - Error // // C - is the Customer code flag // // R - is a reserved bit // // Facility - is the facility code // // Code - is the facility's status code // // // Define the facility codes // // // Define the severity codes // // // MessageId: 0x00000001L (No symbolic name defined) // // MessageText: // // IFRTS Basic // #define CAT_STARTUP 2 // // MessageId: 0x00000002L (No symbolic name defined) // // MessageText: // // Shutdown // #define CAT_SHUTDOWN 3 // // MessageId: 0x00000003L (No symbolic name defined) // // MessageText: // // Shutdown // #define CAT_CategoryCount 3 // CAT_BASIC messages // // MessageId: MC_SERVICE_STARTED // // MessageText: // // Service started // #define MC_SERVICE_STARTED 0x00001000L [...] snip ----- Original Message ----- From: "Vaughan, Benjamin Carl" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Tuesday, October 16, 2001 8:12 AM 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/