Supporting different versions

  • Thread starter Thread starter Chris Koiak
  • Start date Start date
C

Chris Koiak

I need to develop different addins for different versions
of Outlook. I currently develop for 2000 and still need
to support this, but I can optimise my code using the
2002 events. Is it possible to install 2 dlls but choose
which one to run depending on the version of outlook
running??

Thanks
 
You should develop using the oldest library you want to support. You can
handle methods, properties and events for later versions by checking the
version and using those things only if a later version is detected. You can
then use late-binding (objects declared as Object instead of a specific
type) so the compiler won't choke on the methods, properties or events that
aren't valid for the older version of Outlook.
 
Back
Top