Mixing Outlook2000 and OutlookXP units

Add-in Express™ Support Service
That's what is more important than anything else

Mixing Outlook2000 and OutlookXP units
 
Richard Stevens




Posts: 63
Joined: 2007-01-24
We have quite a mature add-in product.

In the previous version of Delphi, I think we had the Office 2000 automation components turned on. In the newer one (Seattle) we have changed to using Office XP. As a result, without us noticing, we have ended up with both Outlook2000 and OutlookXP in our uses clause. This has led to the odd namespace collision which we've worked around by changing the order of the units in the uses clause.

But... it feels messy. I thought we could just go through and remove all the references to Outlook2000 (which I think is the older version) but it seems they're not 100% the same - we get an error saying "undeclared identifier: TItems" if we don't have Outlook2000.

Suggestions as to what best practice should be please?

Thanks
Richard
Posted 09 Dec, 2016 03:23:11 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hello Richard,

Add-in Express is built using Office 2000 components. We suggest that you use Office 2000 components. Of course, you may use Office XP components but this will require that you cast all types that Add-in Express provides from Office 2000 to Office XP.


Andrei Smolin
Add-in Express Team Leader
Posted 09 Dec, 2016 05:26:01 Top
Richard Stevens




Posts: 63
Joined: 2007-01-24
Thank you Andrei
Posted 09 Dec, 2016 06:02:41 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
You are welcome.


Andrei Smolin
Add-in Express Team Leader
Posted 09 Dec, 2016 06:06:08 Top