J
john s
I am trying to create a message text file for the Catagory field in order to
map the catagory input number to a string text. I have found some MSDN
information on this, but it appears to only be for C/C++.
What I have found in MSDN so far can be found here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/message_files.asp
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/header_section.asp
Is it possible to do this in C#? I can't seem to find any howto's or
examples for c#.
My biggest hurdle doing this in C# is the " #define name ((type)0xnnnnnnnn)
" part. I know that c# can do "#defines name" but it can't take in a "type"
to my knowledge. Plus, I don't know what replaces the C++ headers in C#
(and I dont' know C++ in order to compare them).
So, if anyone knows how to create a message text file for the EventLog
Catagory field in C#, please let me know what I am missing or
misunderstanding, or maybe point to some c# howto's or examples. I can't
seem to find any.
TIA,
-John
map the catagory input number to a string text. I have found some MSDN
information on this, but it appears to only be for C/C++.
What I have found in MSDN so far can be found here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/message_files.asp
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/header_section.asp
Is it possible to do this in C#? I can't seem to find any howto's or
examples for c#.
My biggest hurdle doing this in C# is the " #define name ((type)0xnnnnnnnn)
" part. I know that c# can do "#defines name" but it can't take in a "type"
to my knowledge. Plus, I don't know what replaces the C++ headers in C#
(and I dont' know C++ in order to compare them).
So, if anyone knows how to create a message text file for the EventLog
Catagory field in C#, please let me know what I am missing or
misunderstanding, or maybe point to some c# howto's or examples. I can't
seem to find any.
TIA,
-John