Hi,

I am quite new to DOM. Please try to help me out with my problem.
I am trying to get the nodevalue of the node over which i place the
cursor using ISimpleDOMNode->get_nodeInfo. But it is crashing. I have
given my code below:

HRESULT hr;
IAccessible *pAcc;
VARIANT *varChild;
hr = AccessibleObjectFromPoint(pt, &pAcc, &varChild);
ISimpleDOMNode *pSimpleDOMNode = NULL;
hr = pAcc->QueryInterface(IID_IUnknown, (void**) &pSimpleDOMNode);
if (hr == S_OK && pSimpleDOMNode != NULL)
{

 HRESULT hr3;
 hr1 =
pSimpleDOMNode->get_nodeInfo(nodeName,nameSpaceID,nodeValue,numChildren,uniqueID,nodeType);

}

Thanks n Regards

Jayaprabha




Reply via email to