Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C++/CLI C MFC ATL WTL STL
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 10-Dec-08 19:39pm
Tritva711
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Birendra_win at 18-Jun-11 6:53am
   
It realy works. Thanks.
Benjamin Bruno at 25-Jan-12 4:00am
   
Yes thanks for the solution
  Print Answers RSS
0 Maciej Los 315
1 OriginalGriff 273
2 Aajmot Sk 224
3 Marcin Kozub 210
4 Richard MacCutchan 200
0 OriginalGriff 7,853
1 Sergey Alexandrovich Kryukov 7,107
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 9 Jan 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100