//SNIPPET FROM "Messages.mc"
; // The following are message definitions.
MessageIdTypedef=DWORD
MessageId=0x03
Severity=Success
Facility=Runtime
SymbolicName=EVENT_START
Language=English
Document extraction Document ID
When I call ReportEvent without any parameters, "Document extraction Document ID" shows up without error in the Application Log.
-------------------------------------------------------------------
; // The following are message definitions.
MessageIdTypedef=DWORD
MessageId=0x03
Severity=Success
Facility=Runtime
SymbolicName=EVENT_START
Language=English
Document extraction Document ID %1
When I use a Parameter I have problems.
PCTSTR strings[] = { _T("a parameter") }; if (ReportEvent(_hEventLog, 0, 0, //wCategory 3, //dwEventID NULL, //lpUserID 1, 0, strings, NULL)
This is what shows up in the Application Log:
"The description for Event ID 3 from source EventLogger cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local
computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
a parameter"
I don't think I'm using the parameter in the mc correctly, or maybe it's the way I'm compiling things. I'm not sure.
Here's my command line:
mc -U -z "EventLogger" -r .\res Messages.mc