Click here to Skip to main content
16,016,759 members
Please Sign up or sign in to vote.
5.00/5 (3 votes)
Hi,
I have creted a MFC SDI project in VC 2008 and compiled in Vista OS. Now when i copied the project into XP OS system and opened. I can open all views(class view, solution explorer...) but the resource view...
it is showing a MessageBox stating

A resource in file uses an unknown language:English(U.S.)(unknown sub-lang:0x10).
Unable to open this file.

Did anybody come across this problem...

Thank you.

Posted

Since Windows Vista supports "India' English", and has the following definition:

0x4009 India (IN) 0x10 SUBLANG_ENGLISH_INDIA

Visual Studio takes this as the project's language.

While creating new project, one should select 'English (US)' as 'Resource Language' in Project Wizard.
 
Share this answer
 
Open your resource script file, and delete this part from it:
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) (unknown sub-lang: 0x10) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENN)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, 0x10
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// RT_MANIFEST
//

2 RT_MANIFEST "XenonOcx.manifest"
#endif // English (U.S.) (unknown sub-lang: 0x10) resources
/////////////////////////////////////////////////////////////////////////////


It solves your problem.
 
Share this answer
 
Comments
Birendra_Singh 18-Jun-11 6:53am    
It realy works. Thanks.
Benjamin Bruno 25-Jan-12 4:00am    
Yes thanks for the solution


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900