I have the enclosed code and am trying to hook up the attachment events within the Inspector. These delegate handlers (eg gp2_fnAttachAdd) do not fire when I try to attach a file to an item:
hmentAdd += new Outlook.ItemEvents_10_Atta
e += new Outlook.ItemEvents_10_Atta
I am assuming that this is because the handlers go out of scope, although other handlers that are in the same block seem to remain in scope. I am quite new to C# and am struggling with how the garbage collection functions for this area. I enclose the AddIn c# file and the wrapper from where the delegate handlers are declared.
Any assistance on this would be very greatly appreciated, please treat me as a newbie :)