Well, I can't see any problems based on the posted code only. But there is in general a problem with sending strings to a DLL using string as data type as Strings are handled in such a way that memory is allocated dynamically. You should never transfer dynamic data types (like String or dynamic Arrays) between different modules (e.g. EXE<->DLL or DLL<->DLL). Instead use static data types like PChar instead (as replacement for strings) and Pointers to the underlaying datastructure for Arrays.
Furtheremore: What language was the DLL written in? Delphi or C(++)??? Based on this there are in general some rules that can help avoid problems.
P.S.: Please avoid using bold at places where not required (e.g. in quotes

). It's ugly reading

Bold font should be used for highlighting (which can be done in this forum using the highlight-tag too).
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.