c++ and New Inspector event

J

JahMic

Can somebody tell how to handle a New Inspector event in c++. I
realize I need to setup an event handler, but how?

It would be great to do this with the Outlook Object Model, but COM
events is ok too.

Thanks, J
 
D

Dmitry Streblechenko

On the low level, you will need to QI the object for
IConnectionPointContainer, call
IConnectionPointContainer::FindConnectionPoint, the ncall
IConnectionPoint::Advise passigng your implementation of IDispatch. Whenever
an event is raised, your implemenattion of IDispatch::Invoke() will be
invoked with the appropriate dispid.
Both MFC san ATL have COM events support, but don't use either of them. You
migth want to look at the C++ samples from
http://www.outlookcode.com/d/comaddins.htm

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top