473,839 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remove COM Class

How can I "Unbuild" a COM class?

Basically, I used the "Build" command to register to COM Class. But I want
to remove/unregister it.

Thanks, Mark
Nov 21 '05 #1
6 2128
Do you mean: regsvr32 -u
To unregister the COM object from the register?
"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:F3******** *************** ***********@mic rosoft.com...
How can I "Unbuild" a COM class?

Basically, I used the "Build" command to register to COM Class. But I want to remove/unregister it.

Thanks, Mark

Nov 21 '05 #2
well you must do this with the regasm utility not with regsvr

see this info on how to use it
http://msdn.microsoft.com/library/de...lregasmexe.asp
you should always unregister com classes before you remove them as it will
otherwise polute your registry
hth

Michel Posseth


"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:F3******** *************** ***********@mic rosoft.com...
How can I "Unbuild" a COM class?

Basically, I used the "Build" command to register to COM Class. But I
want
to remove/unregister it.

Thanks, Mark

Nov 21 '05 #3
It couldn't locate the dll.

I typed "regasm myCOMLib.dll /u" at the command prompt and it said it
couldn't find the dll.

Again, I compiled and registered the COM class via VB.Net, maybe I'm using
the wrong name? I don't know, this whole process is very frustrating.

Thanks, Mark

"m.posseth" wrote:
well you must do this with the regasm utility not with regsvr

see this info on how to use it
http://msdn.microsoft.com/library/de...lregasmexe.asp
you should always unregister com classes before you remove them as it will
otherwise polute your registry
hth

Michel Posseth


"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:F3******** *************** ***********@mic rosoft.com...
How can I "Unbuild" a COM class?

Basically, I used the "Build" command to register to COM Class. But I
want
to remove/unregister it.

Thanks, Mark


Nov 21 '05 #4
well you must include the hole path of the dll or just copy Regasm to the
assembly path

"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:E4******** *************** ***********@mic rosoft.com...
It couldn't locate the dll.

I typed "regasm myCOMLib.dll /u" at the command prompt and it said it
couldn't find the dll.

Again, I compiled and registered the COM class via VB.Net, maybe I'm using
the wrong name? I don't know, this whole process is very frustrating.

Thanks, Mark

"m.posseth" wrote:
well you must do this with the regasm utility not with regsvr

see this info on how to use it
http://msdn.microsoft.com/library/de...lregasmexe.asp
you should always unregister com classes before you remove them as it
will
otherwise polute your registry
hth

Michel Posseth


"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:F3******** *************** ***********@mic rosoft.com...
> How can I "Unbuild" a COM class?
>
> Basically, I used the "Build" command to register to COM Class. But I
> want
> to remove/unregister it.
>
> Thanks, Mark


Nov 21 '05 #5
I'll try it.

Thanks, Mark

You know I love programming, but sometimes I feel blind. You just can't
give up! For us one guy shops, these forums are the only way to work thru
issues, but they can take time!

"m.posseth" wrote:
well you must include the hole path of the dll or just copy Regasm to the
assembly path

"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:E4******** *************** ***********@mic rosoft.com...
It couldn't locate the dll.

I typed "regasm myCOMLib.dll /u" at the command prompt and it said it
couldn't find the dll.

Again, I compiled and registered the COM class via VB.Net, maybe I'm using
the wrong name? I don't know, this whole process is very frustrating.

Thanks, Mark

"m.posseth" wrote:
well you must do this with the regasm utility not with regsvr

see this info on how to use it
http://msdn.microsoft.com/library/de...lregasmexe.asp
you should always unregister com classes before you remove them as it
will
otherwise polute your registry
hth

Michel Posseth


"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:F3******** *************** ***********@mic rosoft.com...
> How can I "Unbuild" a COM class?
>
> Basically, I used the "Build" command to register to COM Class. But I
> want
> to remove/unregister it.
>
> Thanks, Mark


Nov 21 '05 #6
Okay it seems to work.

Interesting. The unregistered COM Class still shows up in the VBA
References list. When it is checked and an instance is attempted (i.e., Dim
uclass as myCOMClass
Set uclass = new myCOMClass) an error message appears saying it can't be
created. Which I assume is due to the "unregister ing" of the class.

Question. How do you remove the COM Class from the References list in VBA
(Access) and more generally from the Registry (the class (defanged)
myCOMClass still shows up in the Registry under HKEY_CLASSES_RO OT,
HKEY_LOCAL_MACH INE, etc.)?

Thank you,
Mark

"m.posseth" wrote:
well you must include the hole path of the dll or just copy Regasm to the
assembly path

"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:E4******** *************** ***********@mic rosoft.com...
It couldn't locate the dll.

I typed "regasm myCOMLib.dll /u" at the command prompt and it said it
couldn't find the dll.

Again, I compiled and registered the COM class via VB.Net, maybe I'm using
the wrong name? I don't know, this whole process is very frustrating.

Thanks, Mark

"m.posseth" wrote:
well you must do this with the regasm utility not with regsvr

see this info on how to use it
http://msdn.microsoft.com/library/de...lregasmexe.asp
you should always unregister com classes before you remove them as it
will
otherwise polute your registry
hth

Michel Posseth


"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:F3******** *************** ***********@mic rosoft.com...
> How can I "Unbuild" a COM class?
>
> Basically, I used the "Build" command to register to COM Class. But I
> want
> to remove/unregister it.
>
> Thanks, Mark


Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
3102
by: Tony Johansson | last post by:
Hello! I have some problem with STL function remove I have two classes called Handle which is a template class and Integer which is not a template class. The Integer class is just a wrapper class for a primitive int with some methods. I don't show the Integer class because it will not add any information to my problem. Main is using some STL function Now to my problem.
6
4960
by: Arne Claus | last post by:
Hi If've just read, that remove() on a list does not actually remove the elements, but places them at the end of the list (according to TC++STL by Josuttis). It also says, that remove returns a new, logical end pointer, so that the following myList::iterator end = myListObj.remove(myInt); myListObj.erase(end, myListObj.end()); is possible and removes the "invalid" items at the end of the list.
1
19029
by: Craig Buchanan | last post by:
what is the fastest way to remove a value from a string array? something like: dim x as string() = {"A","B","C","D"} 'remove C x.Clear(x, x.IndexOf(x, "C"), 1) Questions:
9
20203
by: Charles Law | last post by:
I have a form on which user controls are placed at runtime. When a control is added to the form a handler is added for an event that a high-level object raises, which must be handled by the new control. When I close the form I am expecting that the control ceases to be. However, if my object raises the event after the form has been closed, I find that there is still a user control object that handles it. Clearly the user control has not...
4
8724
by: Charles Law | last post by:
Is there a way to dynamically remove an event handler from an event without knowing the name of the handler? For example, how can ClassB remove the handler without knowing the name, or how many handlers there are? <code> Public Class ClassA Private m_ClassB As New ClassB
6
7203
by: tshad | last post by:
Is there a reason to use session.remove over session.contents.remove? Don't they both remove the key and data from the contents collection? I assume that session(x) = nothing does essentially the same thing but is actually deleted later by the GC. Thanks, Tom
1
15337
by: Armin Gajda | last post by:
Hi, I have the following problem: An input field get a border assigned by a style class (e.g. 2px solid red). When the field gets the focus, we set the border to green. element.style.border = "2px solid green"; When the field looses the focus, the border should change back to red.
4
3411
by: whatnameisnottaken | last post by:
right now i have gotten all the classes to print out using helpdbg. Now i want to remove the duplicate class names out of an array so i can just print one of each. This is the output i have. class URopeBeamEmitter; class AAGP_GameInfo; class AAGP_Weapon; class ABaseScope; class AInfantryHUD; class UCamEffect_BlurOut; class URopeBeamEmitter;
4
9868
by: FullBandwidth | last post by:
I have been perusing various blogs and MSDN pages discussing the use of event properties and the EventHandlerList class. I don't believe there's anything special about the EventHandlerList class in this context, in fact some articles from pre-2.0 suggest using any collection class of your choice. So my questions focus more on the syntax of event properties provided by the "event" keyword in C#. (Disclaimer - I am a C++ programmer working...
0
9856
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9698
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10299
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7834
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5684
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5871
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4067
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.