IXMLDOMElement from IXMLDOMNode - how ???

ragi

Usenet Archive
Joined
Sep 7, 2004
Messages
17
Reaction score
0
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 ?????
 

ragi

Usenet Archive
Joined
Sep 7, 2004
Messages
17
Reaction score
0
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
548,208
Messages
3,104,799
Members
249,594
Latest member
henrywalsh

Latest Threads

Top