You are not logged in.
Pages: 1
I have changed to Delphi Río from Delphi 7. When I compile a program antes error
occur in SynCommons
E1030 Invalid compiler directive: 'MODE'
in compiler directive $MODE Delphi
Offline
I am afraid there is something wrong with your setup.
Please ensure that you don't have an old Synopse.inc in your IDE path, coming e.g. from an old SynPDF installation.
I don't have any problem to compile current trunk with Delphi 10.3.3:
d:\dev\lib\SQLite3
Embarcadero Delphi for Win32 compiler version 33.0
Copyright (c) 1983,2018 Embarcadero Technologies, Inc.
365082 lines, 4.49 seconds, 5492264 bytes code, 290696 bytes data.Offline
I'm new to the forum and I don't know how it works. I apologize in advance. I have an error in Delphi when compiling.
The error message is:
ufrmPrincipal.pas(32): E2003 Undeclared identifier: 'TSynCrypto'
I have in uses SynCrypto and SynCommons
Offline
There's no TSynCrypto declared there, here's the basic pass encrypt some string example (change TAESOFB with enryption class you need):
function AESEncrypt(const AContent, APass: RawByteString): RawByteString;
begin
Result := TAESOFB.SimpleEncrypt(AContent, APass, True, True);
Result := BinToBase64(Result);
end;
function AESDecrypt(const AContent, APass: RawByteString): RawByteString;
begin
Result := TAESOFB.SimpleEncrypt(Base64ToBin(AContent), APass, False, True);
end;BTW you're using mORMot1 version which is in maintenance mode, there's also v2 which is actively in development.
Offline
Pages: 1