CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    C++ COM MS Outlook object

    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


  2. #2
    Join Date
    May 1999
    Location
    Texas, USA
    Posts
    568

    Re: C++ COM MS Outlook object

    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


  3. #3
    Join Date
    May 1999
    Location
    OR, USA
    Posts
    65

    Re: C++ COM MS Outlook object

    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.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured