Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RC2182: duplicate dialog control ID 65534

1,110 views
Skip to first unread message

TVR Fan

unread,
Aug 13, 2004, 6:30:36 AM8/13/04
to
Apologies for cross-posting but this has got no response in vc.ide.general
so maybe its more on topic in here.

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.

Scott McPhillips [MVP]

unread,
Aug 13, 2004, 8:03:09 AM8/13/04
to
TVR Fan wrote:

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]

TVR Fan

unread,
Aug 23, 2004, 5:13:27 AM8/23/04
to
> 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.

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.


0 new messages