得到ihtmldocument 接口中的状态,判读IE加载是否完毕。
char *pSate=NULL;
BSTR state={0};
DLLop.m_pHTMLDocument2->get_readyState(&state);
pSate= _com_util::ConvertBSTRToString(state);
OutputDebugString(pSate);
if (strcmp(pSate,"complete")==0)
{
break;
}
浙公网安备 33010602011771号