Adam Lock wrote: > > What's the best way to compare two interface pointers to see if they > point to the same object? > > Interface pointer comparison seems risky to me considering that one > pointer might actually belong to a proxy so it wouldn't necessarily > match. DCOM says pointer comparison may only be used to compare > explicitly queried IUnknown interfaces. Does XPCOM have a similar rule? > > Adam Absolutely. QI to nsISupports and compare. Anyone breaking this rule should be spanked. John.
