Outlook 2003 Security Model

S

Stojan Sljivic

I am writing a COM Add-in for Outlook 2003.
When Add-In tries to access the ContactNames property of
the selected Task item a security warning is shown.

Is there any way to bypass this security dialog?

Regards,
Stojan Sljivic
 
K

Ken Slovak - [MVP - Outlook]

By default all COM addin code is trusted in Outlook 2003 if correctly
written. You must derive all Outlook objects from the Application object
that is passed in On_Connection. For example:

'global def
Dim g_objOL As Outlook.Application

'in On_Connection
Set g_objOL = Application

and then derive all other Outlook objects from g_objOL.

Download and study the VB 6 ItemsCB COM addin sample from the Resources page
at www.microeye.com to see an example of an addin template that shows best
practices for Outlook addins and workarounds for some common bugs.
 

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