佚名通过本文主要向大家介绍了线程,多线程,线程池,java多线程,线程和进程的区别等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 有谁用过多线程远程读取XML用COM组件的方式的啊, 请教大家?
描述:
解决方案1:
描述:
我在线程函数里面....
IXMLHTTPRequestPtr xmlrequest;
xmlrequest.CreateInstance("Msxml2.XMLHTTP.4.0");
发现
xmlrequest == NULL
用GetLastError错误号为14007或者14000
不太想明白, 请教大家啊!
解决方案1:
IXMLHTTPRequestPtr xmlrequest;
HRESULT hr=xmlrequest.CreateInstance("Msxml2.XMLHTTP.4.0");
查看hr以获得更详细的信息。
没有看到这个接口喔。
解决方案3: 可能是Msxml2.XMLHTTP.4.0不对或者没有这个版本,
另外我import进来是MSXML2(大写),不知道有没有影响
我一般import对应的dll进来以后使用__uuidof
m_pDoc.CreateInstance(__uuidof(MSXML::DOMDocument));
xmlrequest.CreateInstance(__uuidof(MSXML::XMLHTTPRequest));