错误现象: 

Failed to instantiate CLSID_VirtualBox w/ IVirtualBox, but CLSID_VirtualBox w/ IUnknown works.

PSDispatch looks fine. Weird.

 

解决方法:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{00020420-0000-0000-C000-000000000046}\InprocServer32]
@="c:\\Windows\\system32\\oleaut32.dll"
"ThreadingModel"="Both"


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{00020424-0000-0000-C000-000000000046}\InprocServer32]
@="c:\\Windows\\system32\\oleaut32.dll"
"ThreadingModel"="Both"

 

相关文章: