Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Unable to remove my own duplicate DLL items from REFERENCES list (VB6 SP5)

Posted on 2003-11-08
7
Medium Priority
?
1,517 Views
Last Modified: 2008-03-10
I am having a difficult time removing my own ACTIVEX DLL REFERENCES within my VB 6.0 SP5 IDE.

These DLLs represent interfaces which I have changed during my development process AND have moved into different
folders where they were then registered and unregistered using COM Explorer 2.0. COM Explorer 2.0 does not list the files (at least I can't seem to find them). Symantec System Works doesnt complain about them however Visual Basic STILL lists them even though they dont exist. No matter how hard I try to remove them, they simply won't go away. I have even uninstalled visual basic, reinstalled it and those pesky references are still there. In some cases the items are duplicated several times as well which is a headache since I dont know which one to check off initially as the names are identical. The bogus references always give ERROR LOADING DLL so I keep trying until I find one that works. Anyone know what I need to do to fix this.  I may have deleted the original folder where these DLLS were first compiled and recompiled them in a totally new folder. I have had these references for quite a long time and can't get rid of them.

Help!!!

0
Comment
Question by:const71
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 5

Expert Comment

by:jayeshshah
ID: 9709175
close the project and then open the vbp file in notepad you shall find an entry like below

Reference=*\G{00000201-0000-0010-8000-00AA006D2EA4}#2.1#0#C:\Program Files\Common Files\System\ADO\msado21.tlb#Microsoft ActiveX Data Objects 2.1 Library.


remove hte entry which you donot want and save it.

it shoudl work for u.
0
 

Author Comment

by:const71
ID: 9709216
No, you don't understand....this has nothing to do with any particular vbp file.   If i open a brand new project and go to references it will still be there. It seems theres somthing in my registry that Visual Basic is picking up that COM Explorer 2.0 and Symantec SystemWorks can't find. Both these applications should point out DLLs that are behaving badly but neither one does. Is Visual Basic getting its DLL listing from somewhere else?  How do i fix up my DLL references in Visual Basic IDE

thanx
0
 
LVL 1

Accepted Solution

by:
lmckenzie earned 160 total points
ID: 9709547
Try this.  Use regedit or anothe registry editor and search for the name of your dll(s).  In the case of the one ActiveX dll I had created on my system (test.dll), I found two references, one under CLASSID and one under Typelib.  Deletint the root entry for these keys (the one with the long alphanumeric GUID, removed the entry from VB's project references list.  The ones you need to delete should be the ones with the old folder locations.  Also, AFAIK, you need to unregister the dlls in the original locations and then reregister them after you've move or created new ones.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:const71
ID: 9710100
I am somewhat concerned about fiddling with the registry as I don't usually go in there to fix problems. I'll find the entries if i can and get back to you ....

thanks
0
 

Author Comment

by:const71
ID: 9710279
OK it worked

under HKEY_CLASSES_ROOT\TypeLib\{ class id number here} i found some other sub entries so i deleted the classid root and it worked!  

I need to get a better understanding of how the registry impacts programs (specifically what the various sections mean and how I can use them programmatically for example to perform smart updates and patches)


thanks for the help

0
 
LVL 1

Expert Comment

by:lmckenzie
ID: 9719070
Glad it worked.  I understand your reluctance to monkey with the registry but sometimes it's necessary.  Try the AR Registry Access Library from: http://www.sevillaonline.com/ActiveX/
It's free and gives you more options for dealing with the registry from VB than the standard routines.  They also have a very nice library for working with ini files as well.  Though Microsoft encourages the use of the registry for just about everything, an ini file is often all you need, especially if your application is the only one that needs to access the information.

I don't have a reference of the top of my head but I'm sure a quick Google search will turn up several good sources of information on using the registry.
0
 

Author Comment

by:const71
ID: 9719663
Thanks for the great advice.  I actually have used Google and there are some great articles on the registry. Once I get some free time I'll go over them in greater detail

Thanks again
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

610 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