Solved

Regsvr32

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

696 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