Visual Studio 2019 C++ Project Compliation with SDK 8.1

When a Visual Studio 2019 C++ project using SDK 10.0 using Win32 API is compiled with SDK 8.1, we may have the following C2760 errors. 
Error C2760 syntax error: unexpected token ‘identifier’, expected ‘type specifier’ … C:\Program Files (x86)\Windows Kits\8.1\Include\um\combaseapi.h 229 
Then we need to modify the project property C/C++ – Language – Conformance mode. 

If we change the value Yes (/permissive-) to No, then it will work. 


留下评论