?
Solved

Is there a way to assure unique resource IDs in VS6

Posted on 2003-11-26
4
Medium Priority
?
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 375 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

765 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