Hi.
I am trying to port a project from VS/VC6 to VS.Net, and I am getting the following error:
"..
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h(267) : error C2061: syntax error : identifier 'WCHAR'
.."
This occurs in WinNT.h, the second line posted below:
"..
#ifndef _MAC
typedef wchar_t WCHAR; // wc, 16-bit UNICODE character
#else
// some Macintosh compilers don't define wchar_t in a convenient location, or define it as a char
typedef unsigned short WCHAR; // wc, 16-bit UNICODE character
#endif
.."
Anyone know what causes this? Can it be that WCHAR is used as a typedef somewhere else in the code? I am a newbie in C++, so any advice is greatly appreciated.
regards
Knut Inge
I am trying to port a project from VS/VC6 to VS.Net, and I am getting the following error:
"..
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h(267) : error C2061: syntax error : identifier 'WCHAR'
.."
This occurs in WinNT.h, the second line posted below:
"..
#ifndef _MAC
typedef wchar_t WCHAR; // wc, 16-bit UNICODE character
#else
// some Macintosh compilers don't define wchar_t in a convenient location, or define it as a char
typedef unsigned short WCHAR; // wc, 16-bit UNICODE character
#endif
.."
Anyone know what causes this? Can it be that WCHAR is used as a typedef somewhere else in the code? I am a newbie in C++, so any advice is greatly appreciated.
regards
Knut Inge