CppWebBrowser的问题!120分
cospo 2008-08-23 05:32:18 请问我如何取得例如HTML中播放器的Param标签下的值?
IHTMLDocument2* pDocument;
IHTMLElementCollection* p;
IHTMLElement* link;
long len;
CppWebBrowser2->Document->QueryInterface(IID_IHTMLDocument2, (void**)&pDocument);
pDocument->get_all(&p) ;
pDocument->Release() ;
p-> get_length(&len) ;
for(int i=0; i < len; i++)
{
IDispatch* pDisp;
Variant j;
p->item((Variant)i, j, &pDisp);
pDisp->QueryInterface(IID_IHTMLElement, (void**)&link) ;
pDisp->Release();
wchar_t* input;
link->get_tagName(&input);
if( input == WideString("param") )
{
ShowMessage("got it!");
}
link->Release();
}
这样为什么不行呢?
刚才的一帖好像分太少了没人愿意回。。。。
帮忙解决的获得这贴加另一帖http://topic.csdn.net/u/20080823/13/707751e6-afad-42f7-9d8f-19ea81aed2c4.html
共120分~~谢谢!!