clsid

How to create shortcut for virtual folder in C++ on windows 7?

流过昼夜 提交于 2021-01-29 08:44:35
问题 The platform I am using is windows 7. I need to create shortcut for the virtual folder on windows 7. I use windows 7 SDK sample to create a virtual folder under Computer: The sample project name is called ExplorerDataProvider , it defines the CLSID for the IShellFolder class: // add classes supported by this module here const CLASS_OBJECT_INIT c_rgClassObjectInit[] = { { &CLSID_FolderViewImpl, CFolderViewImplFolder_CreateInstance }, { &CLSID_FolderViewImplContextMenu

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

泄露秘密 提交于 2021-01-29 05:38:24
问题 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 not registered. We don't want to hardcode the name of the COM Object, rather identify it dynamically using the COM Exception/HResult. Any ideas? 回答1: Given the situation

Error 80070005 - I Can't find Microsoft Excel Application or CLSID {00024500-0000-0000-C000-000000000046} on DCOM

我与影子孤独终老i 提交于 2019-12-25 07:48:09
问题 After getting enlightenment from this post , i've changed the flow. I asked the user to upload the excel so i can manipulate it later. and then i got error : Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005. You can see the screenshot here : https://twitter.com/itsCYD/status/570134973128302592/photo/1 i googled for solution and found this : https://waheedrous.wordpress.com/2014/01/26/error-office

C#: DLL is registered but COM error 80040154 still appear

女生的网名这么多〃 提交于 2019-12-24 19:23:53
问题 When I debug my Windows Form Application I get this error: Retrieving the COM class factory for component with CLSID {27526253-6119-4B38-A1F9-2DC877E72334} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) and because of it, my WFA can't interface with the software Solidworks installed on my computer; the only library that WFA needs to interface with Solidworks is SolidWorks.Interop.sldworks.dll (native position in the

Compiling a VB6 COM DLL through command line gets a different CLSID each time

血红的双手。 提交于 2019-12-24 15:14:01
问题 Let dllproject.vbp be a DLL VB6 project. Each time i compile through this Line : VB6.EXE /MAKE dllproject.vbp /outdir somedir The compiler produce a dll with another CLSID. Why ? (EDIT) 回答1: Found why here. In a few word, binary compatibility must be activated. A good way is to keep a copy of the dll (renamed .cmp) for example and reference this copy for version compatibility (Project -> [project name] properties.... 来源: https://stackoverflow.com/questions/34681408/compiling-a-vb6-com-dll

Why genguid.exe generated clsid won't work?

*爱你&永不变心* 提交于 2019-12-24 11:18:17
问题 I am trying to modify exceladdin.py example from pywin demos. Otherwise I can modify it, but when I replace the clsid given in example: "{C5482ECA-F559-45A0-B078-B2036E6F011A}" With the one generated by genguid.exe or pythoncom.CreateGuid() e.g.: "{E44EF798-7FDF-4015-AED6-00234CBBBA77}" The com-addin stops working. No trace, no errors just the following text in excel com-objects list (translation) "Add-in not loaded. Error in runtime while loading com object." Am I missing a step in

CLSIDFromProgID is successful but CreateInstace fails! Why?

帅比萌擦擦* 提交于 2019-12-24 10:56:36
问题 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". Also I get this error only in some computers. It runs error free on several computers. I don't understand where the problem could be. Is my registry dirty?

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

女生的网名这么多〃 提交于 2019-12-24 02:39:30
问题 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 with error 80040154. Looking up the error code in winerror.h on MSDN the error is related to the class not being registered. I tried using regsvr32 to register the