Reference a COM Add-in

R

Reinhardt M

Hi,

I try to reference an Outlook COM AddIn developed using VSTO. In the
knowledgebase I found a solution for OL2000 (Q240768).

Private Sub IDTExtensibility2_OnConnection(ByVal Application As Object, _
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, _
ByVal AddInInst As Object, custom() As Variant)

Application.COMAddIns.Item("MyAddin.Connect").Object = Me
End Sub

Somehow I cannot manage to do so in the VS2005 VSTO extension:
private void ThisApplication_Startup(object sender, System.EventArgs
e)
{

object o = new object();
o = "OutlookSocketServer.ThisApplication";


object m = this.COMAddIns.Item(ref o).Object;

m = this;


}

The usage of indexing seems to have changed.
I greatly appreciate any support.

Reinhardt
 
C

Colin

Hello Reinhardt

Did you find a solution as I'm trying to do the exact same thing and can't
do it?

Thanks
Colin.
 

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