This is a MFC ActiveX control, in order to monitor the page and then call JS function,
Use IWebBrowser2 get_Document a call to this function, shut off the page after the prompt memory errors, blocked after closing it was no problem, I think this may be a memory to release the problem, but why the get_Document how to release, very strange questions, hope to useful too large and give some advice and solutions, thanks, have a month didn't do well!!!!!!!!!!
Only 70 points, all gave
CodePudding user response:
Don't sink!!!!!!!!!!!CodePudding user response:
This wound up ah,,,CodePudding user response:
CoInitialize,,,,=pWebBrowser - & gt; The get_Document ((pIDispatch& & amp;) & PHTMLDocument);//query Web page interface
CoUninitialize,,,