Solved

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

Posted on 2003-11-08
7
1,340 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
  • 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 40 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

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