简体   繁体   English

如何解析CVT1100类型:VisualStudio 2010中的STRING

[英]How to resolve CVT1100 type:STRING in VisualStudio 2010

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

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: 我尝试禁用增量链接,重命名字符串表中的字符串标签,完全更改字符串的标识符,谷歌搜索此问题,在我的解决方案中搜索此ID,但是除以下部分外,错误保持不变:

name:969

Please help me, I'm really annoyed with this issue. 请帮助我,这个问题我真的很生气。 Thanks in advance! 提前致谢!

Had a similar issue. 发生了类似的问题。 Strings are grouped in sets of 16 IDs. 字符串按16个ID的集合分组。 969 is the group# so would refer to a group of 16 string resource ids starting with 969*16= ID 15504. If you have multiple resource files, look for any string resources that overlap ID numbers in the range 15504 thru 15519. 969是组号,因此将指一组以969 * 16 = ID 15504开头的16个字符串资源ID。如果您有多个资源文件,请查找与ID号重叠15504至15519范围内的任何字符串资源。

You might also try clearing out (deleting) compiled resource files ending in .aps if the .rc or .h have been manually edited. 如果.rc或.h已被手动编辑,您也可以尝试清除(删除)以.aps结尾的已编译资源文件。

PS language 0x0419 refers to Russian. PS语言0x0419表示俄语。 0x0409 would be US English. 0x0409将是美国英语。

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: 我试图将ID 9001-9019的字符串从主.rc文件移动到第二个.rc,但链接器出现此错误:

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

I tried to find string with ID 564 but there wasn't any. 我试图找到ID 564的字符串,但没有任何字符串。 So it's obvious the name of string refers to something other than ID of individual string. 因此,很明显,字符串的名称是指单个字符串的ID以外的其他名称。 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. 然后,我尝试查找在错误消息中引用了哪个移动的字符串,并且似乎在移动它之后,从9008开始的每个字符串都导致了错误。

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

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. 解决方案 :将字符串9008-9019的ID更改为9108-9119(我还必须检查其他字符串的ID,这些字符串在字符串9019之后仍在资源中)有助于消除该错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM