Problem with references in Office Xp Developer designed Addin

  • Thread starter Thread starter SFAxess
  • Start date Start date
S

SFAxess

Hi All,
I have been developing an Outlook Addin using the MOD
addin designer. I want to be able to use the addin with
Outlook 2000 and 2002. The problem is, I am having issues
with the object library references, since the user with
2000 is not going to have the 2002 object libraries.
I figured I could change the references using code,
however,I can't figure out how to change the references
using VBA because the OL Application object doesn't have
a references collection.
Any ideas would be most appreciated.
Thanks!
 
Just develop on a machine with Outlook 2000 installed and don't use
any object properties, methods or events that aren't in Outlook 2000
in your code. The code should then run without change on Outlook 2002.
I do it that way for code that has to run on Outlook 2000, 2002 or
2003.
 
Thanks Ken,
I will give that a try.
Would packaging differing object libraries with the setup
files as dependencies be a possible solution?
Thanks!
 
Legally you're not allowed to repackage and distribute any Outlook
libraries, and due to various dependencies you'd basically have to
re-create a complete Outlook installation to make sure that all
required DLL's were installed and registered anyway.
 
SFAxess said:
Hi All,
I have been developing an Outlook Addin using the MOD
addin designer. I want to be able to use the addin with
Outlook 2000 and 2002. The problem is, I am having issues
with the object library references, since the user with
2000 is not going to have the 2002 object libraries.
I figured I could change the references using code,
however,I can't figure out how to change the references
using VBA because the OL Application object doesn't have
a references collection.
Any ideas would be most appreciated.
Thanks!

Ken is correct. Here is Microsoft's article on this topic:

INFO: Writing Automation Clients for Multiple Office Versions
http://support.microsoft.com/default.aspx?scid=kb;EN-US;244167
 
Back
Top