在另一线程中调用IHTMLElement*的get_innerText方法时出现内存访问冲突解决方案
在另一线程中调用IHTMLElement*的get_innerText方法时出现内存访问冲突
在程序中,辅助线程调用主线程中的IHTMLDocument2对象,然后获取其中一个IHTMLElement里面的内容时,如:
pEle->get_innerText(&bstr);时出现内存访问冲突的错误
但是用pEle->get_tagName(&bstr);却没有错误.
请高手指点一下这是什么原因导致的,怎么去改?
谢谢!!!!!
若问题解决了另加分!!
------解决方案--------------------
The IHTMLElement::innerText property is valid for block elements only. By definition, elements that do not have both an opening and closing tag cannot have an IHTMLElement::innerText property.
只对块级元素有效,对内联元素等都无效,是不是和这个有关系
在程序中,辅助线程调用主线程中的IHTMLDocument2对象,然后获取其中一个IHTMLElement里面的内容时,如:
pEle->get_innerText(&bstr);时出现内存访问冲突的错误
但是用pEle->get_tagName(&bstr);却没有错误.
请高手指点一下这是什么原因导致的,怎么去改?
谢谢!!!!!
若问题解决了另加分!!
------解决方案--------------------
The IHTMLElement::innerText property is valid for block elements only. By definition, elements that do not have both an opening and closing tag cannot have an IHTMLElement::innerText property.
只对块级元素有效,对内联元素等都无效,是不是和这个有关系