473,651 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help figuring out: "CVT1100 Duplicate Resource: type ICON"

I've been trying to solve this issue for the better part of a month. My
attempts to get an answer on the MSDN groups proved to no avail. Here is the
situation/problem.

I am migrating an old piece of software developed using VC++ 4.2, running on
Windows NT 3.51 to VC++ 2005, running on Windows XP Pro SP2. I went through
all of the necessary gyrations to reach the point where all of the deprecated
functions were dealt with. I got a clean compile ... except for this:
"CVT1100 Duplicate Resource: type ICON, name: 1, language 0x0409"

So far, I've used a tool to renumber the constants defined in resource.h.
No joy. I tried changing the value of typelib resource ID - I tried a whole
range of values but the error still gives a "1".

Since the MSDN groups couldn't offer any enlightenment other than to say
something along the lines of, too bad you're going from 4.2 to 2005 in, as
Shakespeare might say, "one fell swoop" but you're on your own.

A general web search did turn up this discussion from 2005
(http://www.pcreview.co.uk/forums/thread-1346898.php). There did/does seem
to be an issue where this bizarre error arises but it's not obvious that it
applies to me. Now for some details.

There is one resource file that references the various constants in
resource.h. That file is called MAKEMTC.rc. Two constants are referenced in
the Icon section: IDR_MAINFRAME (128) and IDR_MAKEMTTYPE (129). These, in
turn reference .bmp files. IDR_MAINFRAME is used in a bunch of other places
in the .rc file: Accelerator, where it points to a table display, Menu for a
menu, Toolbar for a toolbar, Dialog for a dialog, and string for string(s).
I tried commenting out various combinations of the two Icon constants - when
I commented out ALL references I got "CVT1100 duplicate resource type Dialog
name 100". This was at least different though the constant in question
wasn't duplicated anywhere.

This program compiles using the 4.2 compiler - there is still a version
running on an old NT 3.51 machine. So, something has changed in Visual C++
that makes things no longer work. The question is, what?

This isn't a programming problem that will yield to logic. I'm interested
in any suggestions as to how to proceed. I don't want to have to completely
rewrite this software from scratch - it's not in the budget/schedule.

To summarize:
(1) there are no duplicate IDs, even though the compiler complains there are;
(2) changing the typelib resource ID, the fix recommended in Help, has no
effect;
(3) all of the ID's are used in a single .rc file, so it's not obvious that
the discussion from 2005 applies but it suggests this may somehow be related
to some changes that Microsoft made.

--
Maritime Electronic Warfare, Crane NSWC
Jun 27 '08 #1
0 1980

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1506
by: F C | last post by:
I have http://localhost/myweb1 who redirect me to my pages. I would like to have http://localhost/myweb2 which I would like to use the same exact set of pages, except a different global.asa (application data will be different). If I duplicate pages, that is not a problem, but I would prefer not to duplicate them. How can I do this ?
2
2588
by: Mark | last post by:
Visual C# .Net Standard 7.1.3088 I'm trying to change the type of application from a windows to a console app. I go into the project properties --> Application --> According to the help, I should have: Assembly Name Output Type Default Namespace Startup Project etc etc.
7
2652
by: Drew Berkemeyer | last post by:
I've encounted a pretty strange problem and I'm not quite sure what to make of it. I have a web service that consumes an XML file as well as a few other parameters. This web service works fine if I use the web test interface. It also works fine if I call it from an ASP.NET page that has a text box where the XML is pasted and then passed on. However, I get an exception if I use an <input type="file"> control on the ASP page that allows...
4
2099
by: Ray Stevens | last post by:
Is it possible to place a company icon (logo) in the browser address field so that if a user copies it as a shortcut to his desktop the icon will be there. For example, like this: http://espn.go.com/
2
1790
by: Matt | last post by:
I'm working on a plug-in for an application called DesktopSideBar for Windows. It emulates to some degree the Longhorn sidebar. The SDK for DesktopSideBar supports .NET plug-in development through COM Interop and a provided reference DLL. In the SDK are two included samples... One, called RecycleBin is written entirely in unmanaged C++ as a normal DLL. The second, StickerPanel, is written in C#. My first exercise was porting StickerPanel...
5
7908
by: Mark Woodward | last post by:
Hi all, I'm trying to set up a 'control panel' consisting of a table of icons. The early stages: http://www.deepinit.com/controlcentre.php Each of these is set up like: <td> <input type="image" id="addnews" src="/Image/add24.png"
0
1431
by: Greg Larsen | last post by:
How add the "Active File" icon (down arrow), and the "Close" icon (X) next on TabPage in the gray space next to the tabs, so when I click on the X the active Tab closes, and and when I click on the down arrow the All active tabs are displayed.
0
1561
by: UT-BadBoy | last post by:
Hi, I've been working with ASP.NET for about a year so I'm still considering myself to be somewhat of a novice in this field. I am receiving this particualr error when trying to hit a webservice from an IE browser: The namespace, , is a duplicate. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more
1
7095
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that someone who bothers to read all of it have some pointers. Note, I have posted the stack trace and the code exhibiting the problem further down so if you want to start by reading that, search for +++ Also note that I am unable to reproduce...
0
8571
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7294
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4280
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1905
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.