ADO vs. MAPI?

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

I wrote a program which uses MAPI to dump email from another program
into the Outlook inbox. I also wrote another program which does about
the same thing, but via the Outlook Object Module (OOM). Both are
written in C and C++.

The one which uses the Outlook Object Module has less tech support
issues, and the one which uses MAPI always generates tech support
calls, usually because the MAPI dlls are mixmatch of versions, stubs,
etc. We would like to dump the MAPI version and go with just OOM, but
the OOM is limited.

Anyway, my question is about ADO. If we go with ADO I understand this
does not run over MAPI, great! But is it like the OOM which limits
which fields you can access? Mostly I'm just trying to access
standard fields, but one field which I can't access via OOM is the
"message flags" field, which I need to use to clear the "un-sent" flag
when dumping messages into the Outlook inbox.

I may end up using a combo of MAPI and OOM, but I would love to avoid
MAPI all together if possible.
 
Using ADO client-side will return a limited subset of the fields that
are available for items. For example it only returns 44 of the Outlook
contact fields.

If you are talking about using ADO or rather SQL type queries against
your Exchange server using WebDAV type syntax you probably can get the
mail flags if you can figure out the proptag for that field.
 
Yes, I was wanting to use ADO client-side, but I guess I can't if I
can't access all the fields.

Is it also true that I can't even use ADO to directly access Outlook
data, without say MS Access as the go between, because there are no
drivers for Outlook data (I guess they would be OLE DB or ODBC
drivers)?

I just want to be able to read/write Outlook data like I could do with
say a DBase or Paradox file, but since the format isn't public and
could change, I was thinking ADO might be the way to go.
 
You don't need Access as a go-between, any code that uses ADO
recordsets and connections can connect to Outlook or Exchange. There's
a KB article on how to do it. However, as I mentioned, you don't get
all the fields you would in the Outlook object model or CDO, just a
subset and the field names in some cases are different than those used
in the Outlook object model.

The driver is an IISAM driver, BTW.
 
Back
Top