これは、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.