I have been creating and registering some user controls. I now need to remove the reference to these controls from the components list window in VB6 as they are no longer valid. How can I do this?
When you click on it in the components list it gives you the location of where it is registered to. have you looked at this? You will want to unregister it from both locations, not just one.
<You will want to unregister it from both locations, not just one.
You can't register two copies of the same ocx or dll file twice, since they would both attempt to register the same classids. The registry goes by classid, not by file location.
>>since they would both attempt to register the same classids
However, there could have been two separate copies because chances are good that there were compatibility issues between then, which is what I had in mind, thus would allow the two copies to be registered to different locations.
<However, there could have been two separate copies
Ok, I see. If you create them yourself, and don't select binary compatibility before compiling, you'll get a different classid every time you compile. Then you could indeed have multiple registrations of the same file, given that each registration pointed to a different file.
<I seem to have two copies of the component in the list and using regsvr only removes one.
Just find the other file that's been registered. There IS a one to one correspondence between files and registry entries. If "using regsvr" only removes one, then you have to use regsvr on the other one, too. Go find the other file that's been registered with the same component name, and unregister it, too.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.