H
Hamish
I'm looking to set up a .NET service (written in C#) that will write events
to the event log and use a message resource dll to provide localized message
text for the events.
The last time I set this up was some time ago (NT4 project circa 1998). I
was expecting the API to the event log to have improved.
Overall I'm not disappointed. It seems pretty straightforward.
The thing that surprises me is that I still seem to need to use mc.exe and
rc.exe to generate the resource only DLL and then I don't see a
straightforward way to integrate the generated header file (with the category
and message symbolic names) into the C# code for the service.
I kind of expected a new .NET way to do this (I guess my expectations are
pretty high because everything else I've looked at the framework seems to
pretty well cover).
I've set up a makefile to turn the message text file into a resource only
DLL and I'm looking into writing an MSBuild task to generate some C# enums
from the header file that rc.exe generates but I'm left with this lingering
feeling that I must be missing something, that there must be a more .NET
framework way to do this.
Can anyone point me at what I feel like I must be missing?
to the event log and use a message resource dll to provide localized message
text for the events.
The last time I set this up was some time ago (NT4 project circa 1998). I
was expecting the API to the event log to have improved.
Overall I'm not disappointed. It seems pretty straightforward.
The thing that surprises me is that I still seem to need to use mc.exe and
rc.exe to generate the resource only DLL and then I don't see a
straightforward way to integrate the generated header file (with the category
and message symbolic names) into the C# code for the service.
I kind of expected a new .NET way to do this (I guess my expectations are
pretty high because everything else I've looked at the framework seems to
pretty well cover).
I've set up a makefile to turn the message text file into a resource only
DLL and I'm looking into writing an MSBuild task to generate some C# enums
from the header file that rc.exe generates but I'm left with this lingering
feeling that I must be missing something, that there must be a more .NET
framework way to do this.
Can anyone point me at what I feel like I must be missing?