clsid

CLSIDFromProgID is successful but CreateInstace fails! Why?

I am trying to create an instance of a COM object. I have the class name that implements the interface and I get a CLSID by using CLSIDFromProgID(). So since I am getting a CLSID I thought everything should be fine from now on. However when I do a call to CreateInstance and pass in the CLSID, I get an error saying "Class not registered"....

Windows 64-bit registry v.s. 32-bit registry

Hello everyone, I heard on Windows x64 architecture, in order to support to run both x86 and x64 application, there is two separate/different sets of Windows registry -- one for x86 application to access and the other for x64 application to access? For example, if a COM registers CLSID in the x86 set of registry, then x64 application wi...

How to find a DLL given a CLSID?

I have a situation in which a managed DLL calls some unmanaged DLL. I know the CLSID of the unmanaged DLL, is there any way to find out what binary file houses that CLSID? ...

XBAP uses unmanaged c++ COM server, Side by side deployment issue

Hi I'm facing a the following situation: I created a simple full trust XBAP application that refers to unmanaged c++ COM server (isolated). After deployment I expect that XBAP application will discover the COM server dll that is placed in the same directory, but it is not. I'm getting the following error: Exception has been thrown by ...

HRESULT:0x80040154 COM object with CLSID {} is either not valid or not registered.

I am using COM Object in my C# .NET 1.1 application. When the COM object is not registered on client machine, I get the exception: "COM object with CLSID {} is either not valid or not registered." (HRESULT:0x80040154) I know how to register the COM object using regsvr32. Our requirement is to identify the COM object which is no...

Visual c# Express Edition - can't get Acrobat pdf reader to work

I'm trying to open a PDF document inside a C# application using Acrobat Inter Application Communication (IAC) in a Visual C# 2008 Express Edition project. When executing the following code I get an exception: CAcroPDDoc pdDoc = new AcroPDDocClass(); The exception reports that the COM class factory for a particular CLSID has failed...

COM class factory error

I am getting the following error on my workstation when I am trying to work with a COM object. An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in CarteGraphInterface.exe Additional information: Retrieving the COM class factory for component with CLSID {3963F0F8-6B0C-4A65-90F4-F6016...

Windows, getting CLSID for DLL?

I want to have a small app to add and remove user defined context menu entries from the registry. To make this somehow I need to get the CLSID of an arbitrary DLL so I can back up previous entries if they exist and then write new ones. Although regsrv32 somehow manages to create this magical number, I didn't find any answer with google. ...

ProgID and file extension relation

I am working on a program using the JACOB project (JAva COm Bridge). There is a file to open, the entire name is passed along (ex. c:\test\test.xls). In order for JACOB to create a new ActiveXComponent it needs to be passed a ProgID or CLSID. (Such as Excel.Application, or Word.Application, but outside of the MS realm there is also A...

Getting notified about new COM server registration

I'm trying to find a way to identify a newly registered or unregistered (via regsvr32) COM servers, which are added to the registry (CLSID). Is there any callback function I can use? I don't really want to poll the registry... ...

How to get CLSID variable name, like MSVC?

When you are debugging a program and you hover over a GUID variable, MSVC retrieves both the variable name (e.g. CLSID_FilterGraph) and the human name (e.g. Filter Graph Object). It does the second by looking at HKCR\CLSID\GUID - but where does it get the variable name from?? It's not in the registry. Any ideas? ...

Create a modified own Com Object in the registry

I want to modified the Internet Explorer CLSID element in the registry: (HKEY_CLASSES_ROOT\CLSID{0002DF01-0000-0000-C000-000000000046} ) It is possible to copy this entry and replace the GUID and create a new alias? Where can I defined a new alias? (Later I want to open this Com Object in PowerShell) ...