Hi Dmitry,
On 6/19/19 2:27 PM, Dmitry Timoshkov wrote:
- cp_cookie = register_cp((IUnknown*)doc, &DIID_HTMLDocumentEvents, (IUnknown*)&doccp_obj);
 
- if (use_events2)
 cp_cookie = register_cp((IUnknown*)doc, &DIID_HTMLDocumentEvents2, (IUnknown*)&doccp2_obj);- else
 cp_cookie = register_cp((IUnknown*)doc, &DIID_HTMLDocumentEvents, (IUnknown*)&doccp_obj);
Please register both connection points here instead of running the whole test twice.
Thanks,
Jacek