I have a program written in Borland C++ Builder 5 and I would like to be able to read with code the Microsoft Outlook Contacts and Calendar items. I have a feature in my program to send an email message using MAPI but I haven't been able to find a way to read Contacts and the Calendar with MAPI.
I have figured out how to access the Outlook Contacts through Ole. I haven't gotten to the Calendar items yet but the interface should be the same. I have included the code for accessing the FullName property of each Contact. I couldn't find a comprehensive list in any documentation of how each of the contact properties must be called but with some experimentation I was able to figure out just about all of them. To get the other properties just replace the parameter to contactItem.OlePropertyGet with one of these values: