错误现象:
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\{---C000-}\InprocServer32]
@="c:\\Windows\\system32\\oleaut32.dll"
"ThreadingModel"="Both"
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\CLSID\{---C000-}\InprocServer32]
@="c:\\Windows\\system32\\oleaut32.dll"
"ThreadingModel"="Both"