In your VS project settings, C++ / Language, set "Treat Wchar_t as built in type" to No, this should fix the problem.