Solved

Is there a way to assure unique resource IDs in VS6

Posted on 2003-11-26
4
251 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 194
string initialization in java 11 115
ffmpeg - "rtsp://...... Operation not permitted" 4 86
Bartender label printing - switch on and off graphics 3 54
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…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 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