clsid

Runtime error 429 in VBA, but class is registered

人盡茶涼 提交于 2019-12-06 09:56:59
问题 I'm trying to recreate a program that uses javascript to open a connection to a PLC and then display all sorts of information on a web page. I'd rather have it in a form in MS Access for various reasons, and have spent forever trying to find the right dll to use (Jet32X.dll, if anyone is curious). I finally tracked the CLSID called out in the javascript back to a registered class for the PLC, and I'm trying to create that object in VB code. It won't get any further than the Dim As New line,

Getting CLSID for a DLL file?

妖精的绣舞 提交于 2019-12-04 18:05:17
问题 I want to create 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 before writing new ones. Although regsrv32 somehow manages to create this magical number, I didn't find any way to get that number myself. I hope there is something better than this: scanning registry for the DLL name if not found, register it, scan again, and then unregister it

Runtime error 429 in VBA, but class is registered

微笑、不失礼 提交于 2019-12-04 16:00:50
I'm trying to recreate a program that uses javascript to open a connection to a PLC and then display all sorts of information on a web page. I'd rather have it in a form in MS Access for various reasons, and have spent forever trying to find the right dll to use (Jet32X.dll, if anyone is curious). I finally tracked the CLSID called out in the javascript back to a registered class for the PLC, and I'm trying to create that object in VB code. It won't get any further than the Dim As New line, however, throwing runtime error 429: "Active X Component Cannot Create Object." Really wish I had some

Using Interop.MODI Throws 0x80040154 Exception

你。 提交于 2019-12-04 03:26:21
I am currently trying to implement the Interop.MODI.dll (From Microsoft Office) to use the Image -> Text features it should Provide. But when doing var modi = new MODI.DocumentClass(); I get: "COMException 80040154 with CLSID {40942A6C-1520-4132-BDF8-BDC1F71F547B}". What have I tried to solve that problem? I registered the DLL using the regasm tool: -Problem still exists I tried setting the BuildPlatform to x86: -Problem still exists I use the Visual Studio 2010 Ultimate with Windows 7 Professional 64Bit & Have Microsoft Office 2007 installed EDIT: I found the Solution: I needed to install the

C++ MFC create IShellItem from CLSID (GUID)

拜拜、爱过 提交于 2019-12-01 14:40:46
I have to create a ShellItem to Windows Help and Windows Run... I have this Help and Support {2559a1f1-21d7-11d4-bdaf-00c04f60b9f0} Run {2559a1f3-21d7-11d4-bdaf-00c04f60b9f0} from http://www.sevenforums.com/tutorials/110919-clsid-key-list-windows-7-a.html I've tried IShellFolder* desk = NULL; HRESULT hr =SHGetDesktopFolder(&desk); LPITEMIDLIST pidl2=NULL; ULONG cbEaten; DWORD dwAttribs = 0 ; hr = desk->ParseDisplayName(NULL, NULL, L"::{2559A1F1-21D7-11D4-BDAF-00C04F60B9F0}", &cbEaten, // This can be NULL &pidl2, &dwAttribs); It returns OK but Null as pidl2 could you guys give me some help?

C++ MFC create IShellItem from CLSID (GUID)

浪尽此生 提交于 2019-12-01 13:24:48
问题 I have to create a ShellItem to Windows Help and Windows Run... I have this Help and Support {2559a1f1-21d7-11d4-bdaf-00c04f60b9f0} Run {2559a1f3-21d7-11d4-bdaf-00c04f60b9f0} from http://www.sevenforums.com/tutorials/110919-clsid-key-list-windows-7-a.html I've tried IShellFolder* desk = NULL; HRESULT hr =SHGetDesktopFolder(&desk); LPITEMIDLIST pidl2=NULL; ULONG cbEaten; DWORD dwAttribs = 0 ; hr = desk->ParseDisplayName(NULL, NULL, L"::{2559A1F1-21D7-11D4-BDAF-00C04F60B9F0}", &cbEaten, // This

How to find a DLL given a CLSID?

柔情痞子 提交于 2019-11-29 02:54:11
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? Normaly, you can just go to: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\"GUID" And find a key called "InProcServer32" for instance and there will be the default value that has the DLL. This is one simple way to do it. Can you not just search for it in the registry using regedit and look for the binary path. Based on BobbyShaftoe reply we can build a simple vbs script that reads that registry for us: Dll_RegPath = "HKEY

How to find a DLL given a CLSID?

北战南征 提交于 2019-11-29 02:52:23
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? Normaly, you can just go to: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\"GUID" And find a key called "InProcServer32" for instance and there will be the default value that has the DLL. This is one simple way to do it. Can you not just search for it in the registry using regedit and look for the binary path. Based on BobbyShaftoe reply we can build a simple vbs script that reads that registry for us: Dll_RegPath = "HKEY

How to find a DLL given a CLSID?

北城余情 提交于 2019-11-27 17:10:33
问题 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? 回答1: Normaly, you can just go to: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\"GUID" And find a key called "InProcServer32" for instance and there will be the default value that has the DLL. This is one simple way to do it. 回答2: Can you not just search for it in the registry using regedit and look for the binary path. 回答3:

Does GDI+ have standard image encoder CLSIDs?

妖精的绣舞 提交于 2019-11-27 15:07:39
The GDI+ Image::Save method requires a CLSID parameter to specify the encoder to use. The documentation points to some sample code for getting the encoder associated with a particular MIME type, such as image/jpeg or image/png. However I'm balking at the thought of copying a half-page function just to support a 1-line debugging aid where I save an intermediate result out to disk. Shouldn't there be a list of standard CLSIDs for the standard encoders? Where would I find such a list? I haven't been able to find one by searching Microsoft's include files. There isn't one. I think they intended