Compiler Warning (level 1) C4788

'identifier' identifier was truncated to 'number' characters

Only the first 31 characters of an identifier are significant in C. In Visual C++, the first 255 characters (after name decoration) are significant. The characters after the limit were truncated.

This may mean that two identifiers that are different before truncation may have the same identifier name after truncation.

The debugger cannot debug code with symbols longer than 255 characters.  In the debugger, you cannot view, evaluate, update, or watch the truncated symbols.

This limitation can be overcome by shortening identifier names. Please see compiler warning C4786 for examples that demonstrate the solution to this problem.

A trace mechanism can also be used to solve this problem. A trace mechanism is like the printf statements in the code. It keeps track of what is going on in an application during the debugging process. The _ASSERT, _ASSERTE, _RPTn and _RPTFn macros provide concise and flexible ways to perform the trace. These macros are not defined when _DEBUG is not defined. See Using Macros for Verification and Reporting for more information.