Session.AddressBook returns Recipients object. Since you already have the
wrapper classes for the CDO objects, shouldn't be a problem to use this one
as well, even though I have no idea how (AttachDispatch()?), I don't use
C++.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> > How do you call the method and what does it return?
>
[quoted text clipped - 10 lines]
>
> Would implementing the interface from olemsg32.dll work ?
Paul Keogh - 24 Sep 2003 14:07 GMT
> Session.AddressBook returns Recipients object. Since you already have the
> wrapper classes for the CDO objects, shouldn't be a problem to use this one
> as well, even though I have no idea how (AttachDispatch()?), I don't use
> C++.
I have wrapper classes in MFC, not ATL which is what I have to use.
The whole purpose of using CDO is to get at the AddressBook GUI from within
my add-in. Its not available from the Outlook Object Model as far as I can
tell,
so its either CDO or extended MAPI that I have to use. BTW, the CDO
session Logon() method now throws an exception !.
<rant>
C++ is hardest way to do this stuff for sure. I find the docs and samples
from Microsoft
to be poor to the point of unusable. If I was'nt being paid for this,
there's no way I'd
touch these technologies.
</rant