IndySASLOAuth2
IndySASLOAuth2 copied to clipboard
Not compile with Delphi 10.1
Hello, I cannot compile the project with Delphi 10.1, here the messages:
[dcc32 Error] IdIMAP4.pas(2757): E2250 There is no overloaded version of 'Write' that can be called with these arguments
IOHandler.Write(IMAPQuotedStr(ASearchInfo[Ln].Text), LEncoding{$IFDEF STRING_IS_ANSI}, IndyTextEncoding_OSDefault{$ENDIF});
[dcc32 Error] IdIMAP4.pas(2760): E2250 There is no overloaded version of 'ToBytes' that can be called with these arguments
LTextBuf := ToBytes(ASearchInfo[Ln].Text, LEncoding{$IFDEF STRING_IS_ANSI}, IndyTextEncoding_OSDefault{$ENDIF});
[dcc32 Error] IdIMAP4.pas(6380): E2250 There is no overloaded version of 'Capture' that can be called with these arguments
IOHandler.Capture(LMStream, LDelim, True, IndyTextEncoding_8Bit{$IFDEF STRING_IS_ANSI}, IndyTextEncoding_8Bit{$ENDIF});
If I delete the last argument in {$IFDEF STRING_IS_ANSI}, it can compiles, but I don't know if it's the good way or if it's better to remove the previous argument instead.
Thanks