![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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 "JahMic" wrote in message ups.com... 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 |
#3
|
|||
|
|||
![]()
Thanks. I pretty much figured it out, a lot of work to setup a
button... On Mar 21, 6:05 am, "Dmitry Streblechenko" wrote: 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 fromhttp://www.outlookcode.com/d/comaddins.htm Dmitry Streblechenko (MVP)http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "JahMic" wrote in message ups.com... 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- Hide quoted text - - Show quoted text - |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
selectionchange event for inspector? | jiun | Outlook and VBA | 1 | January 2nd 07 07:35 AM |
Inspector Close Event is fired when spell checking is canceled. | Arcady | Outlook and VBA | 6 | December 28th 06 03:38 PM |
HOWTO: Get the CommandBarComboBox event on the inspector | tonyl | Add-ins for Outlook | 3 | November 7th 06 02:18 PM |
Problem with CommandBarComboBox Change Event (Event fires only once) | M. Khalid Farooq | Add-ins for Outlook | 1 | October 19th 06 03:34 PM |
Help! Inspector.Close is fired before Inspector.Activate handler finishes | Sergey Anchipolevsky | Add-ins for Outlook | 8 | February 9th 06 10:51 AM |