- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The resource compiler looks in resource.h for lines like this:
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
// 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you can. I don't see anything in the .rc file that knows about this.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
that worked great...thanks
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page