BUG: Using NewWindow or NewWindow2 to Always Navigate in the Same Window Fails in Some Instances
void CIEDlg::OnNewWindow2(LPDISPATCH FAR* ppDisp, BOOL FAR* Cancel)
{
IUnknown* pUnk = m_Browser.GetControlUnknown();
if (pUnk)
{
IDispatch* pDisp = NULL;
HRESULT hr = pUnk->QueryInterface(IID_IDispatch, (void**)&pDisp);
在VB中却是如下
Private Sub a_NewWindow(ByVal URL As String, ByVal Flags As Long, ByVal TargetFrameName As String, PostData As Variant, ByVal Headers As String, Processed As Boolean)