资源文件打开问题 [英] Resource file opening problem
本文介绍了资源文件打开问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在VC 2008中创建了一个MFC SDI项目,并在Vista OS中进行了编译.现在,当我将项目复制到XP OS系统并打开时.我可以打开所有视图(类视图,解决方案资源管理器...),但是资源视图...
它显示一个MessageBox指出
文件中的资源使用未知语言:英语(美国) (未知子语言:0x10).
无法打开此文件.
有人遇到过这个问题吗?
谢谢.
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.
推荐答案
由于Windows Vista支持印度"(英语),并且具有以下定义:
0x4009印度(IN)0x10 SUBLANG_ENGLISH_INDIA
Visual Studio将此作为项目的语言.
创建新项目时,应在项目向导中选择英语(美国)"作为资源语言".
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.
打开资源脚本文件,并从其中删除此部分:
////////////////////////////////////////////////////////////////////////////
//英文(US)(未知子语言:0x10)资源
#if!defined(AFX_RESOURCE_DLL)||已定义(AFX_TARG_ENN)
#ifdef _WIN32
语言LANG_ENGLISH,0x10
#pragma code_page(1252)
#endif//_ WIN32
////////////////////////////////////////////////////////////////////////////////
//
//RT_MANIFEST
//
2 RT_MANIFEST"XenonOcx.manifest"
# endif//英语(美国)(未知子语言:0x10)资源
////////////////////////////////////////////////////////////////
它可以解决您的问题.
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.
这篇关于资源文件打开问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文