Solved

Regsvr32

Posted on 1998-12-30
4
537 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

777 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