I just cut and paste these into a separate Delphi unit and place the value
declarations under the const reserve word in the interface section. I then
replace the #defines with nothing and 0x with = $ and L with ;
I also include the .res file here with the $R option in this unit. This
unit is then used by all other units that need these constants.
Vikash
-----Original Message-----
From: Tom Munro Glass [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 9 May 1999 02:13
To: Multiple recipients of list delphi
Subject: [DUG]: Creating messages for NT Eventlog
Can anyone please suggest a Delphi friendly way of creating a message
resource to be used for NT eventlogging?
I'm currently creating MyFile.mc which I run through Microsoft's Message
Compiler, then I use the Microsoft Resource Compiler to create MyFile.res
which I can include in my Delphi project. The problem is that the Message
Compiler produces MyFile.h which contains the message IDs, but I really want
a pascal compatible file that I can use in Delphi.
Thanks in advance for any ideas.
==================================================================
Tom Munro Glass
+----------------------------------------------------------------+
| E-mail: |
| Internet: [EMAIL PROTECTED] |
| Web sites: |
| TMG CONSULTANCY: http://www.tmgcon.com |
| Tewkesbury Web: http://www.tmgcon.com/tewksweb |
+----------------------------------------------------------------+
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz