Connecting to an addin in Outlook 2010 (or not)

Status
Not open for further replies.
C

CyberEeyor

Well, this is really a VB question, but this discussion group seems to be as

close as I can get. Please redirect me if there is a better place to ask this

question.

I'm trying to set up an Outlook addin using 2010 beta. A skeleton of the

code is shown below.

When I start Outlook, the addin shows up in the list of active addin. I get

the "Mail Checker addin created" and "Mail Checker addin deleted" messages at

the appropriate times. But I never seem to enter any of the IDTExtensibility2

subroutines. Equivalently, Outlook never seems to actually connect to my

addin.

Am I missing some message handler hook-up or something. I haven't seen

anything else in any of the MSDN examples. Are addins in Outlook 2010 beta

fully operational? I will be happy to try any and all suggestions.

Thanks

CyberEeyor

Imports Outlook = Microsoft.Office.Interop.Outlook

Imports System.Runtime.InteropServices

Imports System.Reflection

Imports Extensibility

Public Class MailCheckerAddin

Implements IDTExtensibility2

Private Sub ThisAddIn_Startup(ByVal sender As Object, _

ByVal e As System.EventArgs) Handles

Me.Startup

MsgBox("Mail Checker addin created")

End Sub

Private Sub ThisAddIn_Shutdown(ByVal sender As Object, _

ByVal e As System.EventArgs) Handles

Me.Shutdown

MsgBox("Mail Checker addin deleted")

End Sub

Private Sub IDTExtensibility2_OnAddInsUpdate(ByRef custom As System.Array) _

Implements

IDTExtensibility2.OnAddInsUpdate

MsgBox("Mail Checker notified that add-in have changed.")

End Sub

Private Sub IDTExtensibility2_OnBeginShutdown(ByRef custom As

System.Array) _

Implements

IDTExtensibility2.OnBeginShutdown

End Sub

Private Sub IDTExtensibility2_OnConnection(ByVal Application As Object, _

ByVal ConnectMode As

ext_ConnectMode, _

ByVal AddInInst As Object, _

ByRef custom As System.Array) _

Implements

IDTExtensibility2.OnConnection

MsgBox("Connecting to Mailcheker addin")

End Sub

Private Sub IDTExtensibility2_OnDisconnection(ByVal RemoveMode As

ext_DisconnectMode, _

ByRef custom As

System.Array) Implements IDTExtensibility2.OnDisconnection

End Sub

Private Sub IDTExtensibility2_OnStartupComplete(ByRef custom As

System.Array) _

Implements

IDTExtensibility2.OnStartupComplete

Msgbox("Mailchecker Startup complete")

End Sub

End Class
 
K

Ken Slovak - [MVP - Outlook]

It looks to me like your addin is a mixture of a shared addin and a VSTO

addin. A VSTO addin provides the Startup() and Shutdown() events, or at

least it does if the new disconnection registry setting is turned on. A

shared addin uses extensibility. You need to make up your mind as to which

you are trying to create, you can't mix and match.

You also need to post all the relevant information, such as if you are

running Outlook 2010 in 32-bit or 64-bit mode, which will make a huge

difference.

"CyberEeyor" <CyberEeyor> wrote in message

news:3D358956-52D9-46D6-B80E-881178E00CF8@microsoft.com...
> Well, this is really a VB question, but this discussion group seems to be
> as
> close as I can get. Please redirect me if there is a better place to ask
> this
> question.

> I'm trying to set up an Outlook addin using 2010 beta. A skeleton of the
> code is shown below.

> When I start Outlook, the addin shows up in the list of active addin. I
> get
> the "Mail Checker addin created" and "Mail Checker addin deleted" messages
> at
> the appropriate times. But I never seem to enter any of the
> IDTExtensibility2
> subroutines. Equivalently, Outlook never seems to actually connect to my
> addin.

> Am I missing some message handler hook-up or something. I haven't seen
> anything else in any of the MSDN examples. Are addins in Outlook 2010 beta
> fully operational? I will be happy to try any and all suggestions.

> Thanks
> CyberEeyor

> Imports Outlook = Microsoft.Office.Interop.Outlook
> Imports System.Runtime.InteropServices
> Imports System.Reflection
> Imports Extensibility

> Public Class MailCheckerAddin

> Implements IDTExtensibility2

> Private Sub ThisAddIn_Startup(ByVal sender As Object, _
> ByVal e As System.EventArgs) Handles
> Me.Startup
> MsgBox("Mail Checker addin created")
> End Sub

> Private Sub ThisAddIn_Shutdown(ByVal sender As Object, _
> ByVal e As System.EventArgs) Handles
> Me.Shutdown
> MsgBox("Mail Checker addin deleted")
> End Sub

> Private Sub IDTExtensibility2_OnAddInsUpdate(ByRef custom As
> System.Array) _
> Implements
> IDTExtensibility2.OnAddInsUpdate
> MsgBox("Mail Checker notified that add-in have changed.")
> End Sub

> Private Sub IDTExtensibility2_OnBeginShutdown(ByRef custom As
> System.Array) _
> Implements
> IDTExtensibility2.OnBeginShutdown

> End Sub

> Private Sub IDTExtensibility2_OnConnection(ByVal Application As Object,
> _
> ByVal ConnectMode As
> ext_ConnectMode, _
> ByVal AddInInst As Object, _
> ByRef custom As
> System.Array) _
> Implements
> IDTExtensibility2.OnConnection
> MsgBox("Connecting to Mailcheker addin")

> End Sub

> Private Sub IDTExtensibility2_OnDisconnection(ByVal RemoveMode As
> ext_DisconnectMode, _
> ByRef custom As
> System.Array) Implements IDTExtensibility2.OnDisconnection

> End Sub

> Private Sub IDTExtensibility2_OnStartupComplete(ByRef custom As
> System.Array) _
> Implements
> IDTExtensibility2.OnStartupComplete
> Msgbox("Mailchecker Startup complete")
> End Sub

> End Class

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
L Help connecting to hosted exchange server 2016 Using Outlook 0
D Connecting Gmail to Outlook 365 - My Setup not working Using Outlook 2
B Outlook 2010 Outlook not connecting to servers at Comcast. Using Outlook 3
crazyboy Problems connecting to BCM on Server Using Outlook 2
J Problems connecting to BCM BCM (Business Contact Manager) 16
D Connecting to Exchange changes calendar functionality Exchange Server Administration 1
C connecting to recent outlook file on new hard drive Using Outlook 2
K BCM - Connecting to Shared Database BCM (Business Contact Manager) 0
I iPad not connecting correctly to Outlook.com account Using Outlook.com accounts in Outlook 7
N Outlooking not connecting. Connection present Using Outlook 1
S Connecting to OMA from Outlook ? Using Outlook 1
B Initial "Connecting" to public folders on startup Using Outlook 8
D Issues connecting to echange Using Outlook 7
S Outllook 2007 stops connecting with Exchange after latest MS Updates Using Outlook 2
B Outlook not connecting to my email/server Using Outlook 1
D Connecting BCM 2007 to a shared BCM 2003 Database BCM (Business Contact Manager) 3
V Connecting BCM 2007 to SQL Server 2007 BCM (Business Contact Manager) 1
B connecting to shared database BCM (Business Contact Manager) 1
E Connecting to database failed BCM (Business Contact Manager) 3
B Problem connecting to local BCM database BCM (Business Contact Manager) 1
Gary Hile Icloud addin for outlook 2016 Using Outlook 5
P outlook addin unloaded in office 2007 Using Outlook 0
P Oulook addin unloaded in office 2007 Outlook VBA and Custom Forms 2
oliv- How to Run a Script IN AN ADDIN with Outlook's Rules and Alerts Outlook VBA and Custom Forms 2
Diane Poremsky Always Load an Outlook Addin Using Outlook 1
S BCM crash Atheros Addin 2010 Using Outlook 1
D Constant Dropbox Outlook Addin Authentication Prompts Using Outlook 5
T client addin deletes all business contacts BCM (Business Contact Manager) 1
C Outlook 2010, Need to restrict domain users from installing any sort of a addin in outlook Using Outlook 2
M Icloud Addin in Outlook 2013 Exchange Server Administration 9
R Addins4Outlook TagIt! addin script or VBA module? Using Outlook 2
P Addin / macro / rule to highlight email addresses outside company in To: field Using Outlook 3
H Outlook 2010 Antispam Addin Not Available Using Outlook 1
S COM Addin Failed to load in Outlook 2003 Outlook VBA and Custom Forms 1
G Addin to define message format on a per-contact basis? Outlook VBA and Custom Forms 1
V how to collect details from user, during installation of office addin? Outlook VBA and Custom Forms 1
A how to enable macro for addin Outlook VBA and Custom Forms 3
T Regarding Outlook addin Outlook VBA and Custom Forms 1
N Drag and drop attachment in outlook addin Outlook VBA and Custom Forms 4
S Outlook addin formregion as a drop down Outlook VBA and Custom Forms 6
K Attach addin to outlook 2007 editor Outlook VBA and Custom Forms 3
W My VSTO 3.0 Outlook addin doesn’t load Outlook VBA and Custom Forms 1
T need help w/ sending an e-mail -- outlook 2007 addin Outlook VBA and Custom Forms 2
M VSTO 2007 Addin auto-disabled on one machine but not another on installation? Outlook VBA and Custom Forms 1
N VSTO outlook 2007 addin installation problem Outlook VBA and Custom Forms 1
N Support for outlook 2003 addin in xp home sp2 Outlook VBA and Custom Forms 3
J Addin to trap email item open Outlook VBA and Custom Forms 2
J Addin to trap email item open Outlook VBA and Custom Forms 2
R Hi, Ken, What should be noticed to avoid memory leak in outlook addin? Outlook VBA and Custom Forms 3
D Outlook AddIn can't load outside Visual Studio Outlook VBA and Custom Forms 1

Similar threads

Top