1 Hook the runtime system of the DLL (which apparently is in some foreign language) Consult your products manual on how to do that.
2 redirect/obtain the output from that runtime system to a pchar.
3 convert the pchar to a pascal string.
4. add the string to memo.