IXMLDOMElement from IXMLDOMNode - how ???

R

ragi

It's part of code:

IXMLDOMElement *pPar = NULL, *pChild= NULL;
IXMLDOMNode *pNode = NULL;

bstr = SysAllocString(L"1sth");
pXMLDom->createElement(bstr, &pPar);
SysFreeString(bstr);

bstr = SysAllocString(L"2sth");
pXMLDom->createElement(bstr, &pChild);
SysFreeString(bstr);

pPar->appendChild(pChild, &pNode),



and now when I'm trying get parent from pChild



pNode = NULL;
pChild->get_parentNode(pNode);



pNode have diffrent address than pPar. How can I get proper address of
pPar from pChild ?????
 
R

ragi

I've tried it but returned pointer was still different than orginal.
Up to now one good solve of this problem is holding stack of orginal
pointers in global userspace, but it is not so elegant as I wanted to ....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top