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. But it is crashing at ISimpleDOMNode->get_nodeInfo. I have
given my code below:

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

 hr =
pSimpleDOMNode->get_nodeInfo(nodeName,nameSpaceID,nodeValue,numChildren,uniqueID,nodeType);

}

Thanks n Regards

Does IAccessible implement ISimpleDOMNode?.

Jayaprabha

Reply via email to