Outlook Events are named differently in different versions of Outlook Issue

  • Thread starter Thread starter TC
  • Start date Start date
T

TC

Hello,

I have a COM AddIn written in C# that I compiled and built on a Windows 2000
/ Office 2000 machine.

Now, after installing it on a Windows XP / Office XP machine, when the
application tries to register a delegate for the Explorer 'Close' event, I
receive the following error:

Method not found: Void
Outlook.ExplorerClass.add_Close(Outlook.ExplorerEvents_CloseEventHandler).

Because some methods are named differently across the different versions of
Office, this raises the following question:

Do I need to create separate builds for each version of Office Suite?

Regards,

TC
 
Solved my own problem here. It appears that one needs to cast the event
delegate in order to allow it to work across multiple versions of Office.
 
Back
Top