• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6378
  • Last Modified:

Name conflicts with existing module, project, or object library

I started getting an error regarding the mscomctl.ocx control in a project that has worked fine for a year.  I opened the control project and I found that for some reason the "Microsoft Windows Common Controls 6.0 (sp6)" componenet was no longer selected.  I tried selecting it but when I try clicking ok it gives me the following error:

Name conflicts with existing module, project, or object library

I'm not sure what is going on.  Can anyone help me...please?

Thanks,
axnst2
0
axnst2
Asked:
axnst2
2 Solutions
 
axnst2Author Commented:
Is anyone reading this at all?
0
 
List244Commented:
Do you have something in your project named MSComCtlLib?
A frm... cls...bas?
0
 
edwardiiiCommented:
Hi, axnst2.

List244 is on the right track.  Per the following snippet from (http://vbadvisor.com/doc/05171), try renaming your project -- it's talking about Access VBA, but the overall concept may help you:

     "When working with object libraries, don't give your Access database the same name as a type library reference. If I name my database Outlook.mdb, I can't reference the Outlook type library. By default, the name of the Access VBA project is the same as the database name. You can't load two libraries with the same name -- VBA won't know which library you're referring to in your object declarations. If you encounter a "Name conflicts with existing module, project, or object library" error when you try to select the Outlook type library in the References dialog, change the name of the VBA project in Options > Advanced."
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Shiju SasidharanAssoc Project ManagerCommented:
Hi axnst2
 ur project is still working properly ?

try this
Check the controls u have selected, goto
Projects Menu->Components
and check the checkbox "Selected Items Only"
now see whether u have already selected other versions of Microsoft Windows Common Controls say
Microsoft Windows Common Controls 6.0 (sp4)
Microsoft Windows Common Controls 6.0 (sp5)
etc..
if so uncheck that and try with the version u want

Shiju

0
 
List244Commented:
Shiju, you should be able to have each and every 'Windows Common Controls' added to the
project without any troubles. It seems that he must have a class or form or something, already
named MsComCtlLib.
0
 
axnst2Author Commented:
Wow I finally found what the problem was.  For some reason the exact same .ocx was in my .vbp twice.  I opened my .vbp file in C++ and deleted one of them.  It fixed my problem.  I am not sure how VB accomplished to do this.  Oh well, all that matters is that it's fixed.

Thanks to everyone though!
0
 
List244Commented:
That doesn't sound right at all...First, VB should not allow you to have multiple copies
in it. So that would require editing the vbp in the first place. Also, VB corrects these
things automatically, if you have too many on load it should be handled.
0
 
wraith821Commented:
i've seen this before but only once. never found how it happened eaither but you can edit that vbp file with notepad if you ever need to again. its just text. kinda like an ini file.
0
 
List244Commented:
I recommend splitting the points between myself, and Edwardiii.
0
 
axnst2Author Commented:
I gave you guys the points though in reality I answered my own question.

Thanks,
axnst2
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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