On Monday the patch realizing this function has been accepted. It works perfectly, but hyperlinks do not work. If I makes this function that way:
static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarray) { HRESULT hres; VARIANT *pvar; IHTMLElement *pbody; BSTR vtext; int i;
vtext = SysAllocString(L"");
HTMLDocument_get_body(iface,&pbody);
hres = IHTMLElement_get_innerHTML(pbody, &vtext); if (FAILED(hres)) { vtext = SysAllocString(L""); }
hres=SafeArrayAccessData(psarray, (void **)&pvar); if (FAILED(hres)) return hres; for (i=0; i < psarray->rgsabound[0].cElements; i++) { hres = VarBstrCat(vtext, V_BSTR(&(pvar[i])), &vtext); if (FAILED(hres)) { break; } }
IHTMLElement_put_innerHTML(pbody,vtext); SysFreeString(vtext); hres = SafeArrayUnaccessData(psarray);
return S_OK; }
hyperlinks works good.
Why so occurs?