Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Message compiler and event log.

Message compiler and event log.

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminjsonannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SuperGeek
    wrote on last edited by
    #1

    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.

    C 1 Reply Last reply
    0
    • S SuperGeek

      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.

      C Offline
      C Offline
      Carlos Antollini
      wrote on last edited by
      #2

      Do you have the correct path in the regsitry entry EventMessageFile? Because this is the typical message error when this happens. Cheers!!! Carlos Antollini.

      S 1 Reply Last reply
      0
      • C 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.

        S Offline
        S Offline
        SuperGeek
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups