13,825
社区成员
发帖
与我相关
我的任务
分享
Variant v,v2;
v=CppWebBrowser1->OleObject.OlePropertyGet("Document");
v2=v.OlePropertyGet("all");
int nCount=v2.OlePropertyGet("length");
AnsiString strTagName,strName,strValue,str;
for(int i=0;i<nCount;i++)
{
strTagName=v2.OleFunction("item",i).OlePropertyGet("tagName");
if(strTagName=="INPUT")
{
strName=v2.OleFunction("item",i).OlePropertyGet("type");
//Application->MessageBoxA(strName.c_str(),"提示",MB_OK);
if(strName=="submit")
{
v2.OleFunction("item",i).OleProcedure("click");//此处报错
}
}
}