问题
I need to know CLSID of COM object which I just ran via CreateObject("xxx.xxx") how can I get it?
TIA! Rafal
回答1:
I don't think you can get that information directly from VB itself (e.g., as a side-effect or secondary result of calling CreateObject), but you can read the registry entry at HKEY_LOCAL_MACHINE\SOFTWARE\Classes\xxx.xxx and then look at its CLSID key.
来源:https://stackoverflow.com/questions/13825388/what-is-clsid-of-com-object-i-just-ran-in-visual-basic