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

Problem with multiple Inspectors



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 26th 07, 06:59 PM posted to microsoft.public.outlook.program_addins
Voyager
external usenet poster
 
Posts: 1
Default Problem with multiple Inspectors

Hi!
I'm developing a Addin in VC++ to add a toolbar (and a button) to the email
Inspector... I Advise a "new inspector" on the NewInspector Event, adding it
the "Activate", "Deactivate" and "Close" event. But the same code crashes
when a 2nd Inspector is created (2 "new mail" windows) ...
Could someone help me?


void __stdcall CAddin::OnInspectors_NewInspector(IDispatch* Ctrl){
....
CComQIPtrOutlook::_Inspector spInspector(Ctrl);
// setup InspectorActivateEvent... --------------------
hr = Inspector_ActivateEvent:ispEventAdvise((IDispatc h*)spInspector);
if(FAILED(hr))
ATLTRACE("Failed advising to ApplicationEvents");

// setup InspectorDeactivateEvent... -------------------------
hr = Inspector_DeactivateEvent:ispEventAdvise((IDispa tch*)spInspector);
if(FAILED(hr))
ATLTRACE("Failed advising to ApplicationEvents");

// setup InspectorCloseEvent... ------------------
hr = Inspector_CloseEvent:ispEventAdvise((IDispatch*) spInspector);
if(FAILED(hr))
ATLTRACE("Failed advising to ApplicationEvents");
....
}
 




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
problem with multiple items Jaroslav Harvalik Outlook - Installation 0 February 12th 07 01:06 PM
How attachments and inspectors work together LSM Add-ins for Outlook 0 January 31st 07 08:57 PM
Multiple file problem Rod Outlook - General Queries 2 December 7th 06 09:23 PM
multiple calendars problem Rinze Outlook - Calandaring 0 April 3rd 06 03:58 PM
Errors when using Inspectors Yoav Outlook - Calandaring 1 March 23rd 06 02:47 PM


All times are GMT +1. The time now is 08:43 AM.


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.