How to Delete some item from outlook using C++ code ?

Y

Yanshof

I don't know if this is the right forum to ask this question - but i did nto
find any better forum in code project.


I writing code in C++ and im using com to contol the microsoft outlook.
I try to delete some mail or some appointment with some specific subject or
with some specific body or data from outlook.

But i did not find any good way to do it beside scan all the
mail/appointment in the Outlook::eek:lFolderXXX( XXX is mail folder - like inbox
/ outbox / olFolderCalendar) and compare with the data that i looking for -
and if they are equals then Delete the mail/appointment item.

So i need some "smart" way to find the right item checking each item ..
because scan all the appointment can be a lot of work.
 
S

SvenC

Hi Yanshof,

But i did not find any good way to do it beside scan all the
mail/appointment in the Outlook::eek:lFolderXXX( XXX is mail folder - like
inbox
/ outbox / olFolderCalendar) and compare with the data that i looking
for -
and if they are equals then Delete the mail/appointment item.

So i need some "smart" way to find the right item checking each item ..
because scan all the appointment can be a lot of work.

Check if AdvancedSearch can help you:

http://msdn.microsoft.com/en-us/library/bb219884.aspx
 

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