In that case you might have to use a separate addin for Outlook and not try
to mix it with support for other applications. In mixed use addins I've done
I have shared the same addin among Word, Excel and PPT but have always kept
my Outlook addins separate.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Gabriel Ciuloaica" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Gabriel Ciuloaica wrote:
>> Ken Slovak wrote:
>>
>>> Did you even try what I suggested? I use the code I showed all the time
>>> without Item and always get the COM addin object I want.
>>>
>> Sure I've tryed. It shows me the following error:
>> "Wrong number of arguments or Invalid property assignment" for ComAddIns.
>>
>> Thanks,
>> Gabi
>
> Anyway, I suspect that the problem is in the addin. In addin I have
> multiple interfaces. If I use another interface from VBScript using
> CreateObject() then the instance is created correctly for that interface
> and I can call interface methods without a problem.
>
> I suspect that the problem is in OnConnection method implementation in VC
> addin code. The third parameter that is the AddinInstace is not saved
> This could be the issue but I'm not sure.
>
> Thanks,
> Gabi