Click here to Skip to main content
15,923,909 members
Home / Discussions / COM
   

COM

 
GeneralRe: change the data in C++ dll by C# program Pin
darkbyte28-Jun-04 1:34
darkbyte28-Jun-04 1:34 
GeneralRe: change the data in C++ dll by C# program Pin
ting6687-Jul-04 4:04
ting6687-Jul-04 4:04 
GeneralRe: change the data in C++ dll by C# program Pin
darkbyte7-Jul-04 7:15
darkbyte7-Jul-04 7:15 
GeneralExceptions raised while CoCreateInstance Pin
Anonymous25-Jun-04 3:26
Anonymous25-Jun-04 3:26 
GeneralRe: Exceptions raised while CoCreateInstance Pin
darkbyte27-Jun-04 4:36
darkbyte27-Jun-04 4:36 
General"virtual drive" extension - accesing from "Open File" and System.IO.File API Pin
mr_mark_hewitt24-Jun-04 20:36
mr_mark_hewitt24-Jun-04 20:36 
GeneralRe: "virtual drive" extension - accesing from "Open File" and System.IO.File API Pin
darkbyte27-Jun-04 4:42
darkbyte27-Jun-04 4:42 
QuestionHow do I FULLY unregister a COM+ component programmatically from managed code? Pin
Boyd Campbell24-Jun-04 10:40
Boyd Campbell24-Jun-04 10:40 
Given the limitations of comercial solutions, I'm writing a custom app installation utility. I'm writing it in a generic manner. However, the application I'm initially writing it for has a mixture of .NET and ASP 3.0/COM+ functionality. As such, from managed code, I need to be able to:

- Create/Delete COM+ Applications and set properties.
- Register/Unregister COM+ components (unmanaged code, NOT assemblies) in those applications and set properties.

I've written a class that successfully creates applications and adds components. However, when using COMAdminCatalog.InstallComponent() to register and add components to the application it adds exactly 18 entries to the registry. By contrast, simply registering a component and its type library from the commandline using regsvr32 adds only 10.

My Issue: Using either COMAdminCatalog.Remove() or resvr32 /u doesn't remove ALL registry entries, but leaves 6 entries, all under HKLM\SOFTWARE\Microsoft\COM3\SelfReg. The entries left in there include a CLSID, ProgID and type library.

My Question: I've searched the .NET fx high and low and looked for options for interop, all to no avail. How do I programmatically remove ALL references of a COM+ DLL from the registry so as not to cause any potential conflicts (DLL hell) in future upgrades where binary compatibility is broken? Thanx!

Boyd Campbell
Systems Engineer
AnswerRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
darkbyte7-Jul-04 7:18
darkbyte7-Jul-04 7:18 
GeneralRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
Boyd Campbell7-Jul-04 11:06
Boyd Campbell7-Jul-04 11:06 
GeneralRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
darkbyte7-Jul-04 11:10
darkbyte7-Jul-04 11:10 
GeneralRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
Boyd Campbell7-Jul-04 11:12
Boyd Campbell7-Jul-04 11:12 
GeneralRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
darkbyte8-Jul-04 2:37
darkbyte8-Jul-04 2:37 
GeneralRe: How do I FULLY unregister a COM+ component programmatically from managed code? Pin
Boyd Campbell8-Jul-04 2:54
Boyd Campbell8-Jul-04 2:54 
GeneralType library that has no coclass Pin
pain23-Jun-04 16:08
pain23-Jun-04 16:08 
GeneralFile Monitor Component Pin
robdillon122-Jun-04 23:19
robdillon122-Jun-04 23:19 
GeneralRe: File Monitor Component Pin
pain23-Jun-04 16:05
pain23-Jun-04 16:05 
GeneralRe: File Monitor Component Pin
robdillon123-Jun-04 20:55
robdillon123-Jun-04 20:55 
GeneralGetting an IXMLDOMDocument on DocumentComplete from an IE Control Pin
zumichu21-Jun-04 12:27
zumichu21-Jun-04 12:27 
GeneralRe: Getting an IXMLDOMDocument on DocumentComplete from an IE Control Pin
Andrew Quinn AUS21-Jun-04 22:20
Andrew Quinn AUS21-Jun-04 22:20 
GeneralRe: Getting an IXMLDOMDocument on DocumentComplete from an IE Control Pin
zumichu25-Jun-04 8:30
zumichu25-Jun-04 8:30 
QuestionHow to increment the version number of an ActiveX control? Pin
ssudhaiyer20-Jun-04 23:34
ssudhaiyer20-Jun-04 23:34 
GeneralHelp Connection Points Pin
bariraniahmad18-Jun-04 8:42
bariraniahmad18-Jun-04 8:42 
GeneralRe: Help Connection Points Pin
Andrew Quinn AUS20-Jun-04 22:49
Andrew Quinn AUS20-Jun-04 22:49 
QuestionCreateInstance("MyDll.Class") returns "Invalid class string"? Pin
anderslundsgard18-Jun-04 0:10
anderslundsgard18-Jun-04 0:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.