NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Warning (level 3) C4255

'type' : redefinition; wchar_t and unsigned short are not always equivalent

wchar_t and unsigned short may not be the same size. The first definition is in effect. This warning is off by default. For example:

// compile with cl /c
#include <wchar.h>

#pragma warning(1: 4255)  // Warning is off by default.

typedef unsigned short WCHAR;
typedef wchar_t WCHAR;   // WCHAR may not be the same type as wchar_t as it is as an unsigned short

typedef wchar_t wchar;
typedef unsigned short wchar;      // warning

See Also

#pragma warning