Hi Zhenbo,
This version looks good except:
On 05/24/14 11:56, Zhenbo Li wrote:
- *row = (IDispatch *)&elem->IHTMLElement_iface;
- IDispatch_AddRef(*row);
- IHTMLElement_Release(&elem->IHTMLElement_iface);
You don't need to add such AddRef()/Release() calls. Reference count doesn't change anyway.
Cheers, Jacek