Thursday, December 11, 2014

Error RC2144 : PRIMARY LANGUAGE ID not a number

Fix for “Error RC2144 : PRIMARY LANGUAGE ID not a number”

in visual studio express 2013 , do not have Resources editor,  use the txt editor create a RC file.
include  string table for multiple language support.

Adding #include <windows.h> seems to fix it…for now.

Resources.rc


#include <windows.h>
#include "resource.h"

etc...


/////////////////////////////////////////////////////////////////////////////
// English (United States) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE DISCARDABLE
BEGIN
...
END


#endif    // English (United States) resources


#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
STRINGTABLE DISCARDABLE
BEGIN
.....
END

No comments:

Post a Comment