Adding schedule items using MAPI?

E

Eric

Just when I thought this product was ready to ship, now we are finding
some new bugs...

I have some extended MAPI code which adds schedule items to Outlook.
It actually uses MAPI to add the item to the folder, and then uses OLE
to set a few fields which I couldn't figure out how to set with MAPI.
Everything appears to work fine, and the items look correct when
viewed. However, if I then add an item in Outlook on the day before
the item I added with my code, the item I added with my code appears
to be hidden for some reason (looks like it was deleted). However, if
I then remove the item I added with Outlook, or move it to a date past
the date of the item I added with my code, the item I added with my
code shows up again.

Really strange. Seems like some corrupt data (I would say a corrupt
index, but I don't think Outlook uses indexes like that).

My guess is that I'm not setting one of those custom MAPI properties
which needs to be set. One of those that gets set when you add the
item via OLE, but not when you add it with MAPI. I don't want to add
the item using OLE though, because I've got a lot of code already done
which uses MAPI, and the MAPI method seems faster. The MAPI method
also makes it easy to add the item to a specifc folder, instead of OLE
which wants to add it to the default folder all the time, and then I
have to move it to the folder I want it to be in.

Thanks for any help, this product is supposed to ship May 3rd, ahhh,
Outlook!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top