Getting the GUID of an installed COM object

风格不统一 提交于 2019-12-31 03:15:11

问题


I have a 32bit COM object that I want to use with 64bit PHP.

I am trying to follow the tutorial here:

http://www.gfi.com/blog/32bit-object-64bit-environment/

But I am stuck on "Locate your COM object GUID", as I have no idea where I can find out this information.

Does anyone know how I can find the GUID of the COM object?


回答1:


You will at least have to know the ProgID of the COM component. Something similar to "Word.Application", the string you pass to the COM() constructor. Run Regedit.exe and look through the HKEY_CLASSES_ROOT for that string. Open the node, the CLSID key's default value gives you the GUID you are looking for.



来源:https://stackoverflow.com/questions/19112880/getting-the-guid-of-an-installed-com-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!