C++ Addin: Cannot save the XML for a view

A

Alin

Hi,

Developed a C++ COM Addin for Outlook and when enumerating the views and
update
the XML for a particular view, the changes are not saved.
Code snippet:

BSTR xml = NULL;
myCurrView->get_XML(&xml);
std::wstring resultText;
processXML(xml, resultText);
hr = myCurrView->put_XML(const_cast<BSTR>(resutlText.c_str()));
hr = myCurrView->Save();
hr = myCurrView->Apply();

Tested with OLK 2003.Even though the XML is changed by the processXML
routine, and put_XML, Save and Apply return with no errors the view is not
updated.

Thanks,
Alin
 

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