Undeclared identifier: 'leAES256'

Discussion of open issues, suggestions and bugs regarding LiteDAC (SQLite Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ecl
Posts: 4
Joined: Tue 18 Sep 2012 13:13

Undeclared identifier: 'leAES256'

Post by ecl » Tue 18 Sep 2012 13:31

I'm creating a encrypted database programmatically, example:

Code: Select all

Uses ..., DB, DBAccess, LiteAccess, ...

...

DB                             := TLiteConnection.Create(nil);
DB.Database                    := 'test.db3';
DB.Options.ForceCreateDatabase := true;
DB.Options.Direct              := true;
DB.LoginPrompt                 := false;
DB.Options.EncryptionAlgorithm := leAES256;
DB.EncryptionKey               := '1234';

DB.Open;
Error:

[Error] Unit1.pas(nnn): Undeclared identifier: 'leAES256'

If is created via IDE has no problem.

I'm using: Delphi 7 / Trial version

Any idea?

Thanks.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Undeclared identifier: 'leAES256'

Post by AlexP » Tue 18 Sep 2012 13:57

hello,

To resolve the problem you should add the LiteCall unit to the uses clause to the Unit1 unit in your project.

Code: Select all

Uses ..., DB, DBAccess, LiteAccess, LiteCall, ...

ecl
Posts: 4
Joined: Tue 18 Sep 2012 13:13

Re: Undeclared identifier: 'leAES256'

Post by ecl » Tue 18 Sep 2012 15:43

Thanks.

Post Reply