-
October 26th, 2009, 04:35 AM
#1
.MC file and Event Viewer: Placeholders for Categories?
Hello,
I am using MFC in order to throw events in a custom event log of the windows
event viewer. I am using a .MC file where I store the Categories and the
message definitions used for the events fired on the event viewer.
.MC contains only one message definition since I use a placeholder (%1) in
order to load the messages dynamically from my application.
MessageIdTypedef=DWORD
MessageId=+1
Severity=Error
SymbolicName=MSG_INFORMATION
Language=English
%1
.
I want to do the same with the Categories but I could not find how I can
add a placeholder for them. So, now I use static messages in the Categories
which are contained in .MC file.
MessageId = +1
SymbolicName = CATEGORY_ONE
Severity = Success
Language = English
Category One
.
But I want to load strings dynamically from my application and not
statically from the .MC file. Something like this for example:
MessageId = +1
SymbolicName = CATEGORY_ONE
Severity = Success
Language = English
%1
.
How can I do it?
Thank you in advance
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|