Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2015 compiler error 'LCMapStringEx': identifier not found

My C++/MFC code compiles fine with VS 2013 but when I have compiled with VS 2015 I get this error:

C:\VS\VC\atlmfc\include\atlwinverapi.h(710): 
error C3861: 'LCMapStringEx': identifier not found

I don't use LCMapString anywhere in my code, so I don't know where this come from?

like image 586
Mario Avatar asked Dec 23 '15 19:12

Mario


1 Answers

I had the same problem. For me the cause was this: Part of the project had _WIN32_WINNT set in such a way that XP was supported, other files didn't have this define. So the MFC headers were included with different values for the supported platform leading to this strange error.

like image 129
fschmitt Avatar answered Oct 18 '22 02:10

fschmitt