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

Callbacks



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 28th 08, 01:27 PM posted to microsoft.public.outlook.program_addins
Jason
external usenet poster
 
Posts: 117
Default Callbacks

I have writen an Outlook 2007 Addin using ALT / C++, I have been tring to
find out how I can implement a callback for when the user creates a new
email, I also need callbacks for Sending, Closing and Saving an email. I have
wasted 3 days searching the internet for this infomation. Where can I found
any documentation about this?

Many thanks

Jason
  #2  
Old January 28th 08, 03:50 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Callbacks

Have you tried looking in the Object Browser for the Outlook object model?

Have you looked at the www.outlookcode.com Web site?

There's a very limited amount of information out there that explicitly uses
ATL/C++ with the Outlook object model so most examples will be in VBA, VB6,
VB.NET or C# code. There are some examples using Delphi and some using C++
but not many.

Opening a new email will fire the NewInspector event of the Inspectors
collection.

Each item (MailItem in this case) has events you can subscribe to for Close,
Send and Write.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Jason" wrote in message
...
I have writen an Outlook 2007 Addin using ALT / C++, I have been tring to
find out how I can implement a callback for when the user creates a new
email, I also need callbacks for Sending, Closing and Saving an email. I
have
wasted 3 days searching the internet for this infomation. Where can I
found
any documentation about this?

Many thanks

Jason


  #3  
Old January 28th 08, 04:46 PM posted to microsoft.public.outlook.program_addins
Jason
external usenet poster
 
Posts: 117
Default Callbacks

Hi Ken,

Thanks for your reply, I have had a look at the object browser, tes I can
see trhe events I want to handle, but how do I implement then in C++?

The www.outlookcode.com site refers me to this discission group for more
information.

It is possible to do this using c++ so why is is so hard for Microsoft to
document how to do it?

Regards

Jason


  #4  
Old January 28th 08, 06:31 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Callbacks

I don't use C++, only VB/VB.NET/C#, so I can't answer specifically. I know
there is at least one sample using C++ on outlookcode.com and there are a
few others from MS. I don't have links, you'll have to search out the
samples yourself using something like Google.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Jason" wrote in message
...
Hi Ken,

Thanks for your reply, I have had a look at the object browser, tes I can
see trhe events I want to handle, but how do I implement then in C++?

The www.outlookcode.com site refers me to this discission group for more
information.

It is possible to do this using c++ so why is is so hard for Microsoft to
document how to do it?

Regards

Jason



 




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
com addin button callbacks. Daniel Add-ins for Outlook 1 February 22nd 07 08:17 PM


All times are GMT +1. The time now is 12:26 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.