I have found a serious problem with the Visual Studio 2005 Professional resource editor. I am based in the UK (this is crucial), and when I add a new resource to an MFC project, it is assigned the English (United Kingdom) language by default. Unfortunately, the following line is added to the .rc file, which will not compile:
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_NEUTRAL
The resource compiler will produce the following:
error RC2147 : SUBLANGUAGE ID not a number
It *should* be using SUBLANG_ENGLISH_UK instead.
If I add a new resource and then attempt to change the language to English (US), then it fails and the error persists. This means that every time I add a new resource, I am forced to edit the .rc file by hand in order for it to compile, which is very time-consuming and prone to error.
Does anyone have a workaround for this I guess I could define
SUBLANG_ENGLISH_NEUTRAL as SUBLANG_ENGLISH_UK somewhere. Note also that SUBLANG_ENGLISH_NEUTRAL is nowhere to be found in the Visual C++ headers.

RC2147 : SUBLANGUAGE ID not a number error in VS 2005 Pro
cherriesh
Yes, it happened on my version again. My build is:
8.0.50727.762(SP.050727-7600)
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
This service pack is for Microsoft Visual Studio 2005 Professional Edition - ENU.
kdlady1974
BTW, I installed apploc.msi on my computer to support Unicode. And than I found when I create a Dialog, its Language property will be Chinese (PRC) but I wish it want it to be English (United States), so I change it to what I want it to be. Then the error happened as what the first floor described.
gswitz
Madhukar Bhalerao
http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx feedbackid=a882b35b-c550-49b1-adc9-54588cc6103f
Recursio
8.0.50727.42 (RTM.050727-4200)
schmidj
There's already a bug for this
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=3b49aa31-fa2b-419e-927a-0b16ccc0e18b
the people at Microsoft claim it's not reproduceable in builds after Beta 2. Which build are you running
Greg Beam
Lenny Hoffman
Could you please log a but at http://lab.msdn.microsoft.com/productfeedback/default.aspx so that the responsible folks could take a look.
Thanks in advance for taking the time to log the issue!
Thanks, Ayman Shoukry VC++ TeamMartin_TeroSolutions
That's fine - both really apply - since the other one is a superset of the bug you found (and the other one some parts of it have already been fixed, except for the part about it using the wrong symbol - should be SUBLANG_NEUTRAL)