Sdílet prostřednictvím


Outlook Programming Series # 12 : How to automate different versions of Outlook using VC++ ?

You can automate Outlook 2000, 2002, and 2003 with one small change.

The Outlook 97 Namespace class member has changed to _Namespace in Outlook 2000, 2002, and 2003.

To use the code above for automating Outlook 2000, 2002, and 2003 change this line:
Namespace olNS(olApp.GetNames("MAPI"));
to:
_Namespace olNS(olApp.GetNames("MAPI"));