It sounds look your Outlook add-in is able to detect the ExMAPI button, it
just can't delete it. Is that correct? If so, why not have the COM add-in
check for the presence of your ExMAPI button when a new Inspector opens and
only add its own button if it doesn't find the ExMAPI button?
> I've developed a VB6 COM add-in that displays on the new message
> toolbar in Outlook 2003. However, its code does not
[quoted text clipped - 25 lines]
>
> -Jim
jim_adams@hotmail.com - 06 Dec 2005 17:20 GMT
Hi Dave,
That's a great suggestion. However, the COM button has some
significant advantages over the extended MAPI version including
* position is controllable (next to Send) on standard toolbar (ExMAPI
is only at end)
* button includes text next to its icon
* VB6 code w/Outlook object model has proven more capable than ExMAPI
C++ version
* the strategic direction is to add more capabilties to the COM
version.
It's so close to being an ideal universal add-in... just one step away!
Thanks for your insight.
Jim
> It sounds look your Outlook add-in is able to detect the ExMAPI button, it
> just can't delete it. Is that correct? If so, why not have the COM add-in
[quoted text clipped - 30 lines]
> >
> > -Jim
PuppetMaster - 12 Dec 2005 11:42 GMT
Jim,
For the IDExtensibility methods, they have an array argument custom()
passed. In the _OnConnection function the element in custom(1) is an
integer that indicates how the COM addin was instantiated: 1 = Outlook;
<>1 = Other application eg Word.
I have now come across a slightly different problem with my own VB6
addin. When it initiates, I set up a listener on the Sent Items folder.
However, if I send a mail as an attachment from Word, whilst Outlook is
shutdown, the addin crashes as soon as I try and access the
objApp.GetNamespace("MAPI").Folders.GetFirst object. In fact anything
other than the objApp.GetNamespace("MAPI").Folders.Count property
fails! Any ideas??
Hope this helps!
Paul
jim_adams@hotmail.com - 12 Dec 2005 20:53 GMT
Hi Paul,
Thanks for the tip. In my case, however, the exMAPI add-in will load
from Outlook and also from "Send as Attachment" from Word. I don't
want it to load from Outlook since my more feature-rich COM button will
load then.
So I need to determine where the exMAPI button on the new message
window is loaded from, and not load if the parent is Outlook.
As for your issu with folders, I haven't had the reason to dabble in
that area so am not able to help out. Sorry.
-Jim
jim_adams@hotmail.com - 15 Dec 2005 18:29 GMT
Hi Dave,
>From my response in this thread on Dec 12, 3:53 pm, do you have any
additional thoughts on this one?
Thanks,
Jim
> It sounds look your Outlook add-in is able to detect the ExMAPI button, it
> just can't delete it. Is that correct? If so, why not have the COM add-in
[quoted text clipped - 30 lines]
> >
> > -Jim
Anyone have any further advice on this one?
Thanks,
Jim