I use VC to develop an ActiveX Control to save the XML document locally through a HTML page that use the control, when I use the correct path to load the XML with IXMLDOMDocument::load, everything is ok, so does the actions such as insertBefore, put_NodeValue... But when I use the save method within a "try .... catch" block, it go straight to catch block and have on return code of (HRESULT)hr. So I have to debug the control into the save's souce code as fllow:
HRESULT _hr = raw_save(desination);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
when excuting to the second line, it immediately "jump" out of the save method so I have no return code to build an _com_error(hr) and neither do I can know what the matter.
Can anyone tell me how to get the XML COM exception's description and how can this happen? If something wrong with the XML document's content at least it can return the error code such as E_BAD_ENCODING...