Solved

Regsvr32

Posted on 1998-12-30
4
539 Views
Last Modified: 2010-05-03
I have some activex control projects I've compiled to ocx's but that's all. I've noticed that somehow, these are showing up in the projec's components window (three entries all called project1). I would like to remove them and was wondering if there's a way to do it from within the VB IDE or do I have to use regsvr32. I have tried to use it, but it keeps saying that I have an extra argument on the command line so I guess I'm not doing it right.
0
Comment
Question by:sulli
[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 Comments
 
LVL 4

Accepted Solution

by:
idcanada earned 100 total points
ID: 1453342

Can not be done from the VB IDE. Though, many small utilities exist,
you will have to do this manually.

In the folder where the control has been registered and is located,
type regsvr32 name.ocx /u
this will unregister the control.


0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1453343
I think there is a better answer to this question.

Download regclean from the microsoft site.
http://support.microsoft.com/support/kb/articles/Q147/7/69.asp
This will remove the registry entries of exe that are not available anymore.
From the command line you can unregister using myexe.exe /unregserver

Let me know what you think of it.
0
 

Author Comment

by:sulli
ID: 1453344
That unregistered it I believe, but the "project1" line still shows up in VB's component list???
0
 

Expert Comment

by:batman27
ID: 8584372
Hi,
you can also remove old references that are still in the component list,
by editing the registry :
browse until HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\
and look for the name of the ocx in the data.
Then remove the key that contains this data.
When you restart vb, the component list is cleaned up.
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 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