A
Arsen V.
Hi,
Which one is the proper signature for NewWindow2 event?
1) STDMETHOD (OnNewWindow2) (IDispatch **&ppDisp, VARIANT_BOOL *Cancel);
or
2) STDMETHOD (OnNewWindow2) (IDispatch **&ppDisp, VARIANT_BOOL *&Cancel);
I am using the first one, and set the Cancel flag to TRUE as follows:
STDMETHODIMP (OnNewWindow2) (IDispatch **&ppDisp, VARIANT_BOOL *Cancel)
{
.....
*Cancel = VARIANT_TRUE;
....
}
This appears to work.
However, when I try to use the second signature (the one with *&Cancel) and
set the Cancel to TRUE like this *Cancel = VARIANT_TRUE, my IE crashes. What
am I doing wrong *AND* how to fix it?
Thanks in advance,
Arsen
Which one is the proper signature for NewWindow2 event?
1) STDMETHOD (OnNewWindow2) (IDispatch **&ppDisp, VARIANT_BOOL *Cancel);
or
2) STDMETHOD (OnNewWindow2) (IDispatch **&ppDisp, VARIANT_BOOL *&Cancel);
I am using the first one, and set the Cancel flag to TRUE as follows:
STDMETHODIMP (OnNewWindow2) (IDispatch **&ppDisp, VARIANT_BOOL *Cancel)
{
.....
*Cancel = VARIANT_TRUE;
....
}
This appears to work.
However, when I try to use the second signature (the one with *&Cancel) and
set the Cancel to TRUE like this *Cancel = VARIANT_TRUE, my IE crashes. What
am I doing wrong *AND* how to fix it?
Thanks in advance,
Arsen