"// NEVER declare string as parameter in library function, string is a managed type and each program and library has their own copy of the memory manager"
Well. As long it is pure pascal for pure pascal, one could use {$H-}. Shortstrings are not a managed string type!!