VS2019:如何解决“未知子语言:0x8”问题?资源视图中显示消息? [英] VS2019: How to resolve the "unknown sub-lang: 0x8" message in Resource View?

查看:190
本文介绍了VS2019:如何解决“未知子语言:0x8”问题?资源视图中显示消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始为我的C ++ 11项目使用Visual Studio 2019。 VS2019转换了项目并将其编译为可执行文件。但是我无法在资源查看器中打开资源(.rc)文件。它给了我这个警告:

I have recently started using Visual Studio 2019 for my C++11 project. VS2019 converted the project and it compiles into an executable. But I can't open my resource (.rc) file in the Resource Viewer. It gives me this warning:


此文件中的资源使用未知语言:中性(默认)
(未知子目录, lang:0x8)。无法打开此文件。

A resource in this file uses an unknown language: Neutral (Default) (unknown sub-lang: 0x8). Unable to open this file.

我尝试将资源文件修整到几乎没有必要,但这没用。

I tried trimming the resource file to bare necessity but that did not work.

奇怪的是,它也出现在Microsoft的示例项目Scribble中。我从 https://docs.microsoft.com/en-us/cpp/mfc/walkthrough-updating-the-mfc-scribble-application-part-1?view=vs-2019 使用在先决条件标头下的[Scribble 1.0 MFC示例]链接。

The strange thing is that it also happens with Scribble, Microsofts example project. I downloaded it from https://docs.microsoft.com/en-us/cpp/mfc/walkthrough-updating-the-mfc-scribble-application-part-1?view=vs-2019 using the [Scribble 1.0 MFC sample] link under the Prerequisites header.

在VS2019中打开解决方案时,将对其进行转换,编译,但无法打开随附的资源文件以查看对话框。

When the solution is opened in VS2019, it is converted, it compiles, but I can't open the accompanying resource file to look at the Dialogs.

任何帮助都将受到赞赏!

Any help is appreciated!

最诚挚的问候,
Keun

Best regards, Keun

推荐答案

此解决方案对我有帮助:
https://developercommunity.visualstudio.com/comments/96766/view.html

This solution helped for me: https://developercommunity.visualstudio.com/comments/96766/view.html

如果Windows中有多种语言设置,请删除所有语言设置。我不得不离开英语(美国)选项。然后资源再次打开而没有问题。
希望这对某人(或我自己)有所帮助,因为这是我第二次花一个小时来寻找解决方案。

When you have multiple language settings in your Windows, remove all but one. I had to leave the English (US) option. Then the resource opens again without problems. Hope this helps someone (or myself in the future as this is the second time I spend an hour to search for a solution).

这篇关于VS2019:如何解决“未知子语言:0x8”问题?资源视图中显示消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆