Click to See Complete Forum and Search --> : C++ COM MS Outlook object


May 28th, 1999, 04:18 PM
Hi,

I'd like to access the data in my local Outlook address book. It seems as though Microsoft has an Outlook COM object that provides this functionality. However, all the samples are in VB. I've identified the Outlook object on my machine as msoutl8.olb. I've been trying to import this object into my C++ COM client with the "#import" statement. Visual C++ 6.0 creates the .tlh and .tli files for the object but then can't succesfully compile the .tlh file. ???? Can anyone recommend a better way to access the Outlook object using Visual C++? The MSDN documentation makes it look simple in VB but lacks any info on C++ access to the object.

Thanks,
Mark

Wayne Fuller
May 28th, 1999, 04:32 PM
This is off the top of my head, but I think I am correct. Check out the sample in the MSDN on how to automate Excel and Word using C++. I believe you also have to #import an office dll first before you can do something like Excel and Word. I am assuming that Outlook is the same.

Wayne

Yogen M
May 31st, 1999, 12:20 AM
I haven't used the Outlook COM object but have done this using MAPI COM object.
MAPI exposes lots of interfaces which allow u to start a new Outlook (or any mail client) session.
Interface IAddrBook will be of your interest.