Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

Is there a way to assure unique resource IDs in VS6

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
SteH
Asked:
SteH
  • 2
  • 2
1 Solution
 
AlexFMCommented:
>> 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
 
SteHAuthor Commented:
And how about dialog IDs (IDD_MYDIALOG = IDD_MYDIALOG2)?
0
 
AlexFMCommented:
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
 
SteHAuthor Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now