I keep getting the above warning whenever I open my .rc file (on line 1953)
That line appears to be setting the caption for a dialog so I don't think
that can be right. The number 65534 is not in the .RC file. However, it does
appear once in the resource.h file, defining a label that is not used in the
dialog defined at line 1953 in the .RC file.
The project seems to run with no problems.
This occurs with both MSVC++6 and MSVC++7.1 (.NET)
So what does this warning mean and how do I get rid of it?
--- Al.
The resource.h file uses #define to declare a symbolic name for the ID.
Then the file is #include'd in the rc file, which uses the symbolic
name, not the numeric value. Two things you can try: Search the rc file
for the symbolic name. Edit the resource.h file to change the value.
--
Scott McPhillips [VC++ MVP]
Thanks, I've fixed it. I'm not entirely sure what happened, but the test
control in question certainly had the wrong resource name. I changed the
name to a more appropriate one and the warning has gone. I think another
dialog somewhere else used the same name for a different resource. So the
name and number only appeared once in the resource.h file but was used by 2
different resources.
--- Al.