我在if (!m_wndBrowser.CreateControl(CLSID_WebBrowser, lpszWindowName, WS_VISIBLE | WS_CHILD, rectClient, this, AFX_IDW_PANE_FIRST)) 前加了断点,想单步调试看一下它的值。但是按F5之后,系统弹出“An application targeting a Standard SDK for Windows CE.NET and built for the ARMV4I CPU cannot be run on the Emulator device. In order to run this applicaiton on any CPU other than the Emulator, you will have to install an SDK that is compatible with the Standard SDK for Windows CE.NET, then target a shadow platform pertaining to that SDK. Please see the eVC help documentation for additional details.”
我用的是EVC4.0,是不是没有安装Standard SDK for Windows CE.NET就不能单步调试了阿?如果我按F7的话同样会弹出这个对话框,但是可以生成CE5.0的一个exe文件。我通常把它复制到CE5.0的设备上都是可以用的,所以平时也没有注意这个问题。现在不能单步调试了,这个问题应该怎么解决呢?是不是不安装这个Standard SDK for Windows CE.NET就不能调试了,也不能解决显示浏览器这个功能了呢?
hr = pUnk->QueryInterface(IID_IOleObject, (LPVOID *)(&pObject));
if (FAILED(hr))
goto Cleanup;
DWORD dwFlags;
hr = pObject->GetMiscStatus(DVASPECT_CONTENT, &dwFlags);
if (FAILED(hr))
goto Cleanup;
if (dwFlags & OLEMISC_SETCLIENTSITEFIRST)
{
IOleClientSite *pClientSite;
hr = QueryInterface(IID_IOleClientSite, (LPVOID *)(&pClientSite));
if (FAILED(hr))
goto Cleanup;
hr = pObject->SetClientSite(pClientSite);
pClientSite->Release();
if (FAILED(hr))
goto Cleanup;
}
hr = Activate(pObject);
if (FAILED(hr))
goto Cleanup;
hr = _pObject->QueryInterface(IID_IWebBrowser2, (void **)&_pBrowser);
if (FAILED(hr))
goto Cleanup;
// See if there might be a url in lpszUrl
hr = pUnk->QueryInterface(IID_IOleInPlaceActiveObject, (LPVOID *)(&_pIPActiveObj));
if (FAILED(hr))
_pIPActiveObj = NULL;