首页 > 代码库 > error RC1205: invalid code page

error RC1205: invalid code page

Get followings error and warnings when building project:

error RC1205: invalid code page
warning C4005: ‘__useHeader‘ : macro redefinition
warning C4005: ‘__on_failure‘ : macro redefinition

 

Explanation from MSDN: Resource Compiler Fatal Error RC1205

The Specify Code Page (/c) option was followed by an invalid code page. See Code Pages in the Run-Time Library Reference for more information.

 

Check following items:

1. Check rc file‘s /c option

Go to Project Properties -> Configuration Properties --> Resources --> All Options --> Additional Options

If you set this value, make sure the /c option is set correctly.

 

If this doesn‘t work, please continue:

2. Platform Toolset

Project Properties -> Configuration Properties --> General --> Platform Toolset

Make sure this value is set correctly.

技术分享

i.e. you might get error RC1205 if you are trying to use VS2012 to compile legacy DirectX code.

Beside, if you set "Visual Studio 2012 - Windows XP (v110_xp)" as "Platform Toolset", 

Project Properties -> Configuration Properties --> Resources --> All Options --> Preprocessor Definitions

_USING_V110_SDK71_ will be automatically added to "Preprocessor Definitions". Make sure you didn‘t delete it accidently.

Reference: VS2012 C++ warning C4005: ‘__useHeader‘: macro redefinition.

 

error RC1205: invalid code page