PC Review


Reply
Thread Tools Rate Thread

Addin will not load when I pass Interop Outlook objects to objects to ctors outside the addin

 
 
Ben MacLeod
Guest
Posts: n/a
 
      18th Aug 2004
I am building an Outlook addin using C#. I have created an Interop version
of the Outlook 9 dll, as referred to in the "literature", and have taken
precautions to fix the bug with event handling which can cause Interop
Outlook applications to crash.

Everything had been working fine using this library until I started passing
Interop Outlook objects to other objects in my code. Methods belonging to my
addin Connect object were fine, but methods belonging to other objects
caused the addin not to load at all.

For instance, if I have the Connect.Foo(Interop_Outlook.MAPIFolder folder)
method, that's fine, but if I define a Foo.ctor(Interop_Outlook.MAPIFolder
folder) method (constructor for a Foo object), the program compiles, but the
addin doesn't load on the target machine at all. It is as if an exception is
thrown while loading the addin which I never see. (n.b. I don't even have to
call the Foo.ctor - it is enough just to define it for the addin not to
load)

Any ideas on this would be greatly appreciated.
Regards,
Ben


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: [E2007] My VBA turned into an AddIn doesn't see objects Mike H Microsoft Excel Programming 0 3rd Jan 2010 05:13 PM
I am using excel 2002 with the business objects addin for Infoview Sarah H Pearson Microsoft Excel New Users 0 27th Oct 2009 05:04 PM
Automation AddIn (UDF) in C# not able to manipulate XL Objects... pdxJaxon Microsoft Excel Programming 3 16th Jul 2008 05:10 AM
can't load outlook addin fbolefeysot Microsoft Outlook 2 19th Feb 2008 01:59 PM
How do you Pass an array of Objects from C# to VB6 (interop) Williams.sam@gmail.com Microsoft C# .NET 1 21st Oct 2005 04:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 AM.