Introduction
In my MFC book, Visual C++ .NET Bible (New York: John Wiley & Sons, 2002), I included a chapter that illustrated how to write an MFC application to read and display the nodes of an XML file to a tree view control using the COM interfaces to the Microsoft XML DOM (Document Object Model). In that chapter's demo I illustrated that this seemingly trivial task required that you initialize COM, acquire an IXMLDOMDocumentPtr interface, call that interface's load method, and acquire the root element interface pointer (IXMLDOMElementPtr) via the documentElement member. Starting at the root element, you iterate through each node acquiring IXMLDOMNodePtr interface pointers and finally—on the basis of the node type—extract the name and value ...
Get Extending MFC Applications with the .NET Framework now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.