这是我在 OnBtnClick 函数中编写的代码
CComPtr<IHTMLDocument3> pDoc3 = (IHTMLDocument3 *)m_webBrowser.get_Document();
CComPtr<IHTMLElement> pElem;
BSTR idTmp = CComBSTR(L"article_summary");
HRESULT hr = pDoc3->getElementById(idTmp, &pElem);
我正在尝试获取 Id 为“article_sumary”的元素......但我得到了这个
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function
call. This is usually a result of calling a function declared with one calling
convention with a function pointer declared with a different calling convention.