Remove COM Class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Do you mean: regsvr32 -u
To unregister the COM object from the register?
 
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
 
well you must include the hole path of the dll or just copy Regasm to the
assembly path
 
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!
 
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 "unregistering" 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_ROOT,
HKEY_LOCAL_MACHINE, etc.)?

Thank you,
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top