you should learn some pointer & memory manage knownology first,
the pChar is ref to string sResultado, it is auto alloc-free in dll proc.
normally, you should do like this:
----------------------------------
pCharS := AllocMem(LEN);
CALL_DLL_PROC(pCharS, LEN); --> code in dll: Move(sResultado[1], pCharS^, LEN);
FreeMem(pCharS);