Outlook 2010 beta does not start addin

C

CyberEeyor

I'm trying to create an Outlook adding for 2010 beta using VB. The addin
shows up in the list of addins and I get the "Mail Checker addin created" and
the "Mail Checker addin deleted" messages at the appropriate times (see code
below), but I never get any of the messages in the IDTExtensibility2
subroutines. I would guess that this means that Outlook 2010 beta is not
"connecting" to my addin.

I checked all the example code that I could find and I seem to have
everything I need. I've also tried both Visual Studio 2008 and Visual Studio
2010 beta. Is there something I'm missing? Does Outlook 2010 beta not support
addins yet?

I wll 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]

Are you using a shared addin or a VSTO addin? Your code has the signatures
for both and that's not something that would ever work in any version of
Outlook.

If you are using a shared addin you will need the extensibility interfaces,
if you are using VSTO you would use the ThisAddIn_Startup() and
ThisAddIn_Shutdown() events, VSTO would handle the extensibility interfaces.

You posted the same thing in another group and were told the same thing,
just posting again in a different group won't get you a different answer.

You need to decide which type of addin you are writing. Also post if you are
using 32-bit or 64-bit Office, since addins for one won't run on the other
setup.
 
C

CyberEeyor

Ken Slovak - said:
You posted the same thing in another group and were told the same thing,
just posting again in a different group won't get you a different answer.

Thanks for the insight, Ken. I will see if I can use your observations to
fix my problem.

But just for the record, I did start out trying another group, but I wasn't
sure exactly where to ask this question. The moderator over there recommended
this group - but he did not give me an answer that I ignored.
 
R

ryo82

CyberEeyor wrote on 02/04/2010 11:11 ET :
Thanks for the insight, Ken. I will see if I can use your observations to
fix my problem.

But just for the record, I did start out trying another group, but I wasn't
sure exactly where to ask this question. The moderator over ther recommended
this group - but he did not give me an answer that I ignored.
I think this strongly depends on the add-in you are using, with lookeen whic
is a search tool, there weren't any bigger problems, but I am pretty sure tha
the developpers of your add-in are aware of that and are working on thi
problem, so I wouldn't worry about it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top