Solved

Is there a way to assure unique resource IDs in VS6

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 430
either24  challenge 19 97
post4 challenge 28 100
wordmultiple challenge 12 132
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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 tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

773 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