(03-08-2021, 10:41 AM)Cortomatt Wrote: Me, i have a problem in compiling the unit IdSASL_NTLM
with this line (in TIdSASLNTLM.ContinueAuthenticate)
[dcc32 Erreur] IdSASL_NTLM.pas(72): E2250 Aucune version surchargée de 'ToBytes' ne peut être appelée avec ces argumentsCode:LMsg := ToBytes(ALastResponse, LEncoding{$IFDEF STRING_IS_ANSI}, LEncoding{$ENDIF});
That translates to the following in English:
Quote:[dcc32 Error] IdSASL_NTLM.pas(72): E2250 No overloaded version of 'ToBytes' can be called with these arguments
And yes, there is a suitable overload for those exact arguments (where ALastResponse is a const String, and LEncoding is an IIdTextEncoding):
Code:
function ToBytes(const AValue: string; ADestEncoding: IIdTextEncoding = nil
{$IFDEF STRING_IS_ANSI}; ASrcEncoding: IIdTextEncoding = nil{$ENDIF}
): TIdBytes; overload;Makes me wonder if you are compiling with an old version of IdGlobal.pas rather than the latest?

