Outlook Events are named differently in different versions of Outlook Issue

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
 
T

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.
 

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