Need Exchange User with VCL

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

Need Exchange User with VCL
 
Pfeiler Franz




Posts: 10
Joined: 2011-05-30
Hello!

I need hlep programming a AddIn for Outlook2007 with VCL DelphiXE

In .Net it is possible to get the ExchangeUser:
Sample:
lEntry = lGlobalAddressList.AddressEntries[ADefaultName];
Outlook.ExchangeUser lCurrentUser = lEntry.GetExchangeUs er();

I need the same for VCL:
lEntry := lGlobalAddressList.AddressEntries.Item(ADefaultName); // OK!
lCurrentUser := lEntry.GetExchangeUser; // Not supported in Outlook2000 and OutlookXP

Is it possible to get the ExchangeUser?
Posted 30 May, 2011 08:16:47 Top
Dmitry Kostochko


Add-in Express team


Posts: 2839
Joined: 2004-04-05
Hi Franz,

You can use late binding to get access to properties and methods that don't exist in Outlook2000 and OutlookXP files. Please try to use the following code:

lCurrentUser := OleVariant(lEntry).GetExchangeUser;
Posted 30 May, 2011 09:16:22 Top
Pfeiler Franz




Posts: 10
Joined: 2011-05-30
Hi Dmitry!

It works! :D

Thank you, Franz
Posted 31 May, 2011 02:30:57 Top