Solved

Is there a way to assure unique resource IDs in VS6

Posted on 2003-11-26
4
225 Views
Last Modified: 2013-11-20
When using VC++6.0 and VS I am getting duplicate resource IDs. Mainly it comes with cut and paste controls from one (sub)dialog to another within the same project. I assume that its not good to have several controls with the same ID (numerically) even when they are used in different dialogs but inside the same app. Is there a(n easy) way to avoid duplicates when using cut and paste?
0
Comment
Question by:SteH
  • 2
  • 2
4 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 9824170
>> I assume that its not good to have several controls with the same ID (numerically) even when they are used in different dialogs but inside the same app.

Why? No problem at all.
0
 
LVL 13

Author Comment

by:SteH
ID: 9824199
And how about dialog IDs (IDD_MYDIALOG = IDD_MYDIALOG2)?
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 125 total points
ID: 9824247
This may be a problem. It happens to me also, sometimes with strings, controls etc. which gives completely unpredicatable results. If I see that it happened I manually retype values in resource.h - a (not) easy way.
0
 
LVL 13

Author Comment

by:SteH
ID: 9824302
So its me who has to keep an eye on the IDs and hopefully I recognize this before I loose hours in debugging. Would be a nice tool to have.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video discusses moving either the default database or any database to a new volume.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now