Message compiler and event log.
-
I am trying to add a few new event log messages to the program that reports its status to the event log. I had added all the corresponding entries to the .MC file and compiled it(using "MC" command), but after I ran updated executable, instead of needed test, I found the following message in the event vewer: "The description for Event ID ( 7 ) in Source ( FSAINQ_Builder ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: ." Also, I tried to change the strings for existing messages, but event viewer DID not update those either. Did lots of crazy and supersticious things like rebooting computer and restarting Event Viewer - nothing works. If someone knows something on event logging API, message compiler, message recourse files(.RC), etc., please let me know what you've got in your bag. Thanks in advance. Kirill.
-
I am trying to add a few new event log messages to the program that reports its status to the event log. I had added all the corresponding entries to the .MC file and compiled it(using "MC" command), but after I ran updated executable, instead of needed test, I found the following message in the event vewer: "The description for Event ID ( 7 ) in Source ( FSAINQ_Builder ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: ." Also, I tried to change the strings for existing messages, but event viewer DID not update those either. Did lots of crazy and supersticious things like rebooting computer and restarting Event Viewer - nothing works. If someone knows something on event logging API, message compiler, message recourse files(.RC), etc., please let me know what you've got in your bag. Thanks in advance. Kirill.
Do you have the correct path in the regsitry entry EventMessageFile? Because this is the typical message error when this happens. Cheers!!! Carlos Antollini.
-
Do you have the correct path in the regsitry entry EventMessageFile? Because this is the typical message error when this happens. Cheers!!! Carlos Antollini.
Carlos, I DO have a correct path. In InitInstance(), this application creates the following registry key in the root of HKEY_LOCAL_MACHINE: "\SYSTEM\CurrentControlSet\Services\EventLog\Application\\" Then, it obtains complete path of its executable(using GetCurrentDirectory()) and then inserts this path under "EventMessageFile" entry in the root of key, specified above. I tried moving this executable in variety of directories, and every time, the correct home path of executable would be displayed in regedit. I am lost.