Hi folks --
I have a DLL that wants to report maybe eight or ten events in the
Application event log. Is there a simple, straightforward way to do
that? MSDN has it in
http://msdn2.microsoft.com/en-us/library/aa385769(VS.85).aspx
that I need to use something called a message compiler (mc), then use
rc to further compile that, and then link the output .res file to make
a whole 'nother DLL.
What's a better way? Ideally, I'd like to end up with these event
messages as part of my DLL. I see that many (maybe all) apps hold
their event messages internal to the DLL/EXE, but how to do it?
I've modified my registry key
"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\EventLog\
\Application\\SPMAgent" (where SPMAgent is my application) to point to
SPMAgent.dll, but Event Agent naturally complains.
Thanks!
-- Pete