怎么使用IHTMLDocument4,在vc6里面编译不过!
#include "mshtml.h"
CComQIPtr<IHTMLDocument2, &IID_IHTMLDocument2> spDoc;
CComPtr<IDispatch> psDisp;
m_pWndBrowserPage->m_pWebBrowser2->get_Document(&psDisp);
spDoc = psDisp;
IHTMLDocument4 *spDocEvent;
spDoc->QueryInterface(IID_IHTMLDocument4,(LPVOID*)&spDocEvent);
不好意思,只有10分啦