VS2008资源编辑器更改语言 [英] VS2008 resource editor changes language
本文介绍了VS2008资源编辑器更改语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在对C ++中VS2008中的应用程序进行一些改进.
当我尝试编辑资源(例如在字符串表中添加条目)时,编辑器将rc文件的语言从LANG_ENGLISH
更改为LANG_NEUTRAL
,并且非英文文本被问号替换.
如果我在外部(在记事本中)编辑rc文件,然后在VS2008中加载它,则效果很好.
有人可以帮我解决这个问题吗?
谢谢
Shimon
Hi all,
I am doing some improvements to an application in VS2008 in C++.
When I try to edit resources (for example add an entry in the string table), the editor changes the rc file language from LANG_ENGLISH
to LANG_NEUTRAL
and a non English text is replaced with question marks.
If I edit the rc file externally (in notepad), and then load it in VS2008 it works fine.
Can anybody help me solve this?
Thanks
Shimon
推荐答案
如果将中性语言设置为英语会发生什么?
对于C#,可以通过将其添加到AssemblyInfo.cs中来完成,但是由于它是.Net功能,因此您应该能够在C ++中执行相同的操作(语法可能有所不同):
[assembly:NeutralResourcesLanguageAttribute("en")]
What happens if you set the neutral language to be english?
for C# this is done by adding this to the AssemblyInfo.cs, but as it''s a .Net feature you should be able to do the same in C++ (syntax may differ):
[assembly: NeutralResourcesLanguageAttribute("en")]
这篇关于VS2008资源编辑器更改语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文