IUpdateSession建立成功,ISearchResult也正确返回..IUpdateDownloader也能下载,为什么IUpdateInstaller建立不成功?
IUpdateInstaller * pUpdateInstaller = NULL;
hr = pSession->CreateUpdateInstaller(&pUpdateInstaller);
始终返回0x80020008
我本机用msdn上的脚本执行没问题啊...
MSDN脚本:http://msdn.microsoft.com/en-us/library/aa387102(VS.85).aspx
6 个解决方案
#1
没用过,帮顶
#2
没人了解啊
#3
(0x80020008) (-2147352568) Bad variable type
Cause: The datatype of a PL/SQL or Java value passed as a method parameter did not match the COM Automation data type of the method parameter, or a NULL value was passed as a method parameter.
Action: Ensure that any local variables used as method parameters are of the appropriate data type and are set to a value other than NULL.
Cause: The datatype of a PL/SQL or Java value passed as a method parameter did not match the COM Automation data type of the method parameter, or a NULL value was passed as a method parameter.
Action: Ensure that any local variables used as method parameters are of the appropriate data type and are set to a value other than NULL.
#4
楼主把代码都贴出来大家看看吧。
#5
问题解决..
hr = CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, IID_IDispatch, (void **)&pDisp);
的时候第三个参数用错了..
错误的用了CLSCTX_LOCAL_SERVER
hr = CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, IID_IDispatch, (void **)&pDisp);
的时候第三个参数用错了..
错误的用了CLSCTX_LOCAL_SERVER
#6
想问问楼主如何获取到下载的进度啊.???
#1
没用过,帮顶
#2
没人了解啊
#3
(0x80020008) (-2147352568) Bad variable type
Cause: The datatype of a PL/SQL or Java value passed as a method parameter did not match the COM Automation data type of the method parameter, or a NULL value was passed as a method parameter.
Action: Ensure that any local variables used as method parameters are of the appropriate data type and are set to a value other than NULL.
Cause: The datatype of a PL/SQL or Java value passed as a method parameter did not match the COM Automation data type of the method parameter, or a NULL value was passed as a method parameter.
Action: Ensure that any local variables used as method parameters are of the appropriate data type and are set to a value other than NULL.
#4
楼主把代码都贴出来大家看看吧。
#5
问题解决..
hr = CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, IID_IDispatch, (void **)&pDisp);
的时候第三个参数用错了..
错误的用了CLSCTX_LOCAL_SERVER
hr = CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, IID_IDispatch, (void **)&pDisp);
的时候第三个参数用错了..
错误的用了CLSCTX_LOCAL_SERVER
#6
想问问楼主如何获取到下载的进度啊.???