PRB: Description for Event ID Could Not Be Found

Last reviewed: December 16, 1996
Article ID: Q129003
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with:

        - Microsoft Windows NT versions 3.5, 3.51, 4.0
    
  • Microsoft Visual C++, 32-bit Edition, version 2.0

SYMPTOMS

After building and executing the Win32 LOGGING sample that accompanies Visual C++ version 2.0 and the Microsoft Developer's Network Library CD, you find that the descriptions for the logged events contain the following:

   The Description for Event ID (#) in Source (application name) could not
   be found. It contains the following string(s):

CAUSE

The resource file containing the descriptions that correspond to the Event IDs are not bound to the MESSAGES.DLL.

RESOLUTION

Add the MESSAGES.RC file to the Visual C++ version 2.0 project:

  1. Run MAKEMC.BAT first. MAKEMC.BAT creates the MSG00001.BIN, MESSAGES.RC, and MESSAGES.H files.

  2. Open Visual C++ version 2.0 and add MESSAGES.RC to the MESSAGES project (MESSAGES.MAK).

  3. Rebuild both the MESSAGES and the LOG projects.

NOTE: If you ran the sample a couple of times from different places, you may need to delete the LOG registry key if it contains an incorrect location for the MESSAGES.DLL file.


Additional reference words: 3.50 3.51 4.00 Event Logging Log MSDN
KBCategory: kbprg kbprb
KBSubcategory: BseMisc


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 16, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.