library Project1;uses
  SysUtils,
  Classes;  {$R *.res}
function GetString():pchar;stdcall;
var sSay:string;
begin
ssay:='M M:' +'Hello!';
getMem(result, sizeof(ssay) + 1);
strcopy(result, pchar(ssay));
end;
exports
  GetString;
begin
end.