This documentation is archived and is not being maintained.

Compiler Error C2002

Error Message

invalid wide-character constant

The multibyte-character constant was not legal.

To fix by checking the following possible causes

  1. The wide-character constant contains more bytes than expected.

  2. The standard header STDDEF.h is not included.

  3. Wide characters cannot be concatenated with ordinary string literals.

  4. A wide-character constant must be preceded by the character 'L':

    L'mbconst'
    
Show: