If Outlook is started "headless" some versions of VSTO won't initialize the
addin. They only initialize the addin when Outlook is started with some UI
such as an Explorer or Inspector. That may have something to do with your
problem.
Another possibility is that since VSTO 2005 SE doesn't fire its Startup()
event until OnStartupComplete() fires in the extensibility interfaces that
you are checking for Connect too early.
I didn't bother writing complete code, just a snippet and indicated that you
need an Outlook.Application object which I called oOL in my code snippet. So
I would expect errors in Word VBA code unless you did instantiate an
Outlook.Application object.
--
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
"Steffen Grellmann" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Sorry, the registry confusion has been my fault. I first had an
> underline in the registration name of my AddIn like "Test_2003".
> Without that underline oAddin is initiated correctly and the item
> collection is returning my AddIn as well as the other ones.
>
> Nevertheless oAddin.Connect is still returning False for me.
>
> Although you commented "'oOL is an Outlook.Application object" I had
> to put in the following lines in order to prevent a compilation error
> in Words VBA editor:
>
> Dim oOL As Object
> Set oOL = outlook.Application
>
> Has this to do with my issue? Developing environment is VSTO SE 2005
> and Word 2003/VBA with a reference set to the Outlook object model.