IMessage->SaveMessage does not reflect Message Properties immediat

N

Nikhil Sharma

Hi,
I am facing one issue with Outlook 2003 Addin (develeoped by VSTO).
As everybody knows that Outlook object model shows security Pop-up, when we
try to access some specific properties like body, recipients ... etc of any
Message Item. So i am using MAPI (managed C++ code) to access (read/write)
these properties to supress security Popup (i don't know, whether there is
any other way to supress security Popup? if yen then please suggest).

Now when i try to set these properties using MAPI
"IMessage->SaveMessage(KEEP_OPEN_READWRITE) or
IMessage->SaveMessage(FORCE_SAVE)", these properties are not getting
reflected immediately, To see the changes in these properties i need to close
my outlook and then reopen it.
I dont know what is the solution of this problem.

Thanks and Best Regards,
Nikhil Sharma
 
N

Nikhil Sharma

Hi Ken,
I have written half code in .NET and half code in managed C++, and i am
passing MAPIOBJECT from .NET code to C++ code and then doing all operation on
that mapi object.


But after IMessage->SaveChanges(KEEP_OPEN_READWRITE), changes are not
reflected immidiately, it takes time ! As in CDO there is one method
IMessage->Fields->Update, which updated the message immediately, is there
anything available in MAPI to do the same.

Thanks and Best Regards,
Nikhil Sharma
 
N

Nikhil Sharma

Correction :

typo : IMessage->SaveChanges(KEEP_OPEN_READWRITE) - wrong

IMessage->SaveChanges(KEEP_OPEN_READWRITE) - right
 
K

Ken Slovak - [MVP - Outlook]

As I mentioned before, managed code is not supported for Extended MAPI.

For MAPI questions you really are best off posting in
microsoft.public.win32.programmer.messaging. That's where the Extended MAPI
experts answer questions.
 

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