Software Archive
Read-only legacy content
17060 Discussions

resource editor assigns duplicate numbers in resource.fd

kvrichardson
Beginner
316 Views
Am I doing something wrong? When I create a new control in the resource editor, it is often assigned an id number that is already in use, resulting in error messages when I send the new resource files to my coworker. I am certain that each control should have a unique ID. Please advise.
0 Kudos
4 Replies
Steven_L_Intel1
Employee
316 Views
The resource compiler looks in resource.h for lines like this:

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        102
#define _APS_NEXT_COMMAND_VALUE         40001
#define _APS_NEXT_CONTROL_VALUE         1002
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif


It uses these to decide what values to assign to new controls. If you are sharing resource files, be sure to include resource.h in the files you share.

Steve
0 Kudos
kvrichardson
Beginner
316 Views
Interesting.....my resource.h has "next control value" as 1232, but resource assignments go to 1352. next control value should be set for 1353. can I change resource.h manually without destroying my resource files?
0 Kudos
Steven_L_Intel1
Employee
316 Views
I think you can. I don't see anything in the .rc file that knows about this.

Steve
0 Kudos
kvrichardson
Beginner
316 Views
that worked great...thanks
0 Kudos
Reply