How to free / release MSXML2::IXMLDOMDocument2Ptr object?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,<br/>
<br/>
I use:<br/>
MSXML2::IXMLDOMDocument2Ptr pXMLDoc;<br/>
pXMLDoc.CreateInstance(__uuidof(MSXML2::DOMDocument60), NULL, CLSCTX_INPROC_SERVER);<br/>
<br/>
to read from a XML file. <br/>
<br/>
When I am done, I guess I have to free / release it. <br/>
<br/>
What is the proper way to do that? <br/>
( COMs Release method, or something else ? )<br/>
<br/>

View the full article
 
Back
Top