porting project from VC6 to VC7?

Joined
Sep 19, 2005
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top