what is CLSID of COM object I just ran in Visual B

2019-07-11 11:43发布

问题:

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.



标签: vb.net com