Solved

Regsvr32

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
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 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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now