uses
madCrypt;
function EncString(const Str: string; const Key: string): string;
var
S: string;
begin
S := Str;
Encrypt(S, Key); //error
S := Encode(S);
Result := S;
end;
[DCC Error] uCrypt.pas(xx): E2250 There is no overloaded version of 'Encrypt' that can be called with these arguments
madCrypt only supports ANSI strings. The "string" keyword in Delphi 2010 now signals a wide string (2 bytes per characters). That's not supported by madCrypt. If you replace all "string" words in the code you posted here with "AnsiString", the problem should go away.