如何在 VisualStudio 2010 中解析 CVT1100 类型:STRING [英] How to resolve CVT1100 type:STRING in VisualStudio 2010

查看:47
本文介绍了如何在 VisualStudio 2010 中解析 CVT1100 类型:STRING的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译具有两个资源文件的项目.第一个文件包含一个对话框、一个菜单等,除了一个字符串表,第二个文件只包含一个字符串表.所以,每次我尝试构建我的项目时,我都会收到以下错误:

I'm trying to compile my project that has two resource files. The first file contains a dialog, a menu etc. except a string table, the second one consists of a string table only. So, every time I try to build my project I get the following error:

1>CVTRES : fatal error CVT1100: duplicate resource.  type:STRING, name:969, language:0x0419
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

我尝试禁用增量链接、重命名字符串表中的字符串标签、完全更改字符串的标识符、谷歌这个问题、在我的解决方案中搜索这个 ID,但错误保持不变,除了以下内容部分:

I've tried to disable incremental linking, to rename string labels in the string table, to completely change identificators of the strings, to google this issue, to search this ID in my solution, but the error remaines unchanged except the following part:

name:969

请帮帮我,我真的很恼火这个问题.提前致谢!

Please help me, I'm really annoyed with this issue. Thanks in advance!

推荐答案

我遇到了与重复字符串类似的问题.我尝试将 ID 为 9001 - 9019 的字符串从主 .rc 文件移动到第二个 .rc 文件,但链接器出现此错误:

I had similar problem with duplicate strings. I tried to move strings with IDs 9001 - 9019 from main .rc file to second .rc and I've got this error from linker:

2>CVTRES : fatal error CVT1100: duplicate resource.  type:STRING, name:564, language:0x041B
2>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

我试图找到 ID 为 564 的字符串,但没有找到.所以很明显,字符串的名称指的是单个字符串的 ID 以外的东西.然后我试图找出错误消息中引用了哪个移动的字符串,似乎在我移动它之后,从 9008 开始的每个字符串都会导致错误.

I tried to find string with ID 564 but there wasn't any. So it's obvious the name of string refers to something other than ID of individual string. Then I tried to find, which of moved strings is referred in error message and it seems, that every string from 9008 on causes the error, after I move it.

在我阅读上一个答案后,错误消息指的是字符串组或字符串表(.rc 文件中的关键字 STRINGTABLE),我意识到,通过将部分字符串移动到另一个 .rc,我有效地创建了 2 个字符串表ID 为 564.

After I read previous answer, that the error message refers to group of strings or table of string (keyword STRINGTABLE in .rc file), I realised, that by moving part of strings to another .rc I effectively created 2 string tables with ID 564.

解决方案:将字符串 9008 - 9019 的 ID 更改为 9108 - 9119(我还必须检查其他字符串的 ID,这些字符串位于字符串 9019 之后的资源中)有助于消除错误.

The solution: changing IDs of strings 9008 - 9019 to 9108 - 9119 (I had also to check IDs of other strings, which were in resource after the string 9019) helped to eliminate the error.

这篇关于如何在 VisualStudio 2010 中解析 CVT1100 类型:STRING的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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