Article ID: 21569 - Last Review: March 5, 1999 - Revision: 1.0 RW2002 Error "Cannot Reuse String Constants" in RC.EXEThis article was previously published under Q21569 On This PageSUMMARY
The error "Cannot Reuse String Constants" will be returned by the Resource
Compiler if you have used the same ID value to define two different string
constants.
For example, the following error is returned when compiling the resource file:
Cannot Reuse String Constants
The file MY.RC may contain the following lines: MORE INFORMATION
The following sample code can be used to demonstrate the problem.
Sample CodeNote that "one" and "four" have the same value. This error may be less noticeable if you are using both decimal and hexadecimal notation in your RC file. In the following example, 0x010 and 16 have the same value and generate the error:
0x010, "hex 10" 10, "ten" 11, "eleven" 15, "fifteen" 16, "sixteen" | Article Translations
|
Back to the top
