View Single Post
  #1  
Old September 3rd 07, 07:25 PM posted to microsoft.public.outlook.program_addins
gernot
external usenet poster
 
Posts: 4
Default How to uniquely identify explorer / inspector objects in Outlook 2007

I am always getting different interface pointers for same explorer
objects. The same happens for inspector objects. What can a do to
unquely identify these objects?

Scenario:

1. In the NewInspector handler I save the _Inspector pointer.
2. In an event handler from a control in this inspector I use
IRibbonControl::get_Context() to obtain the corresponding _Inspector
pointer.

These pointers are never the same (comparing IUnknown pointers). These
COM objects are not the same!

In the case of inspectors I get away identifying them by its creation
date.
What can I do to identify explorers? Is there any Outlook method to
compare these objects?

Thanks, Gernot

Ads