我在网上看到有人写CE的浏览器程序时,他的代码为:
extern "C" DWORD __stdcall SetProcPermissions(DWORD);
extern "C" DWORD __stdcall GetCurrentPermissions();
CWnd *pWnd = NULL;
HWND hWnd;
hWnd = ::FindWindow(NULL, _T("\\HardDisk\\HiServer\\index.html"));
if(!hWnd)
{
AfxMessageBox( _T("FindWindow 失败") );
return;
}
pWnd = (CWnd*)GetWindowLong(hWnd, GWL_WNDPROC);
pWnd->pBrowsr->Navigate2(_T("www.sohu.com"), NULL, NULL, NULL, NULL);
SetProcPermissions(dwCp);
请问,为什么我用的时候就出现问题:‘pBrowser' : is not a member of 'CWnd'啊?
是不是我忘记添加什么头文件了啊?