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
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