A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

c++ and New Inspector event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 20th 07, 11:03 AM posted to microsoft.public.outlook.program_addins
JahMic
external usenet poster
 
Posts: 35
Default c++ and New Inspector event

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  
Old March 20th 07, 10:05 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default c++ and New Inspector event

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  
Old March 21st 07, 03:25 PM posted to microsoft.public.outlook.program_addins
JahMic
external usenet poster
 
Posts: 35
Default c++ and New Inspector event

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 08:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.