[Help] MFC ypelib wrappers for MSXML5
-
All, I am currently using the Typelib wrappers for MSXML that was generated from the MFC Typelib Class wizard. I think I am using the objects incorrectly, and this is generating unhandled exception errors. I use wizard MFC Class from Typelib to generate wrapper classes for the MSXML5 control (CXMLDOMDocument, CXMLDOMElement, CXMLDOMNode, and CXMLNodeList). The exception occurs when I pass a CXMLDOMNode reference to a function that I want it to work on by stepping down farther in the node tree. For example: If(m_XMLDOMroot.hasChildNodes()) { int rootchildcount = RootNodeList.get_length(); for(int i = 0; i < rootchildcount; ++i) { CXMLDOMElement childnode = RootNodeList.get_item(i); <- This code sometimes user breaks SetChildNode(childnode); } } PS - I did not know it this group would also apply to this message. Robert