HI,
Why in c-script the function from Dll works and with lite-c doesn´t work?
hier is the dll function code.

DLLFUNC BSTR Get_SAttributValue(STRING* file, STRING* xpath, STRING* attribut)
{
IXMLDOMDocumentPtr pXMLDom;
HRESULT hr;
BSTR bstrA;
BSTR bstrB;
_bstr_t bstrValue;
STRING* error = NULL;

CoInitialize(NULL);

hr = pXMLDom.CreateInstance(__uuidof(DOMDocument30));
if (FAILED(hr))
{
return dprintf("\t%S\n\n", L"Failed to instantiate DOMDocument30 class\n");
}
pXMLDom->async = VARIANT_FALSE;
if ( pXMLDom->load(_CHR(file)) != VARIANT_TRUE)
{
return dprintf("\t%S\n\n", L"Failed load xml data from file.\n");
}


// Query a single node.
IXMLDOMNodePtr pNode = pXMLDom->selectSingleNode(_CHR(xpath));
if (pNode == NULL)
{
return dprintf("\t%S\n\n", L"Invalid node fetched.\n");
}
else
{
return printf("Result from selectSingleNode:\nNode, <%s>:\n\t%s\n\n",
(LPCSTR)pNode->nodeName, (LPCSTR)pNode->xml);
}

// atributos


IXMLDOMNamedNodeMap* attributeMap;

bstrValue = _CHR(attribut);
pNode->get_attributes(&attributeMap);
attributeMap->raw_getNamedItem(bstrValue,&pNode);
pNode->get_nodeName(&bstrA);
pNode->get_text(&bstrB);
dprintf("\t%S\n\n", bstrB);
printf("Result from Atributos:\nNode, <%s>:\n\t%s\n\n",
bstrValue, (LPCSTR)bstrB);

// Query a node-set.
IXMLDOMNodeListPtr pnl = pXMLDom->selectNodes("//stock[1]/*");
for (int i=0; i<pnl->length; i++)
{
pNode = pnl->item;
printf("Node (%d), <%s>:\n\t%s\n",
i, (LPCSTR)pNode->nodeName, (LPCSTR)pnl->item->xml);
}

pXMLDom.Release();
pNode.Release();
pnl.Release();
CoUninitialize();
return dprintf("%S", bstrB);
}