Page 1 of 1

Undeclared identifier: 'leAES256'

Posted: Tue 18 Sep 2012 13:31
by ecl
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.

Re: Undeclared identifier: 'leAES256'

Posted: Tue 18 Sep 2012 13:57
by AlexP
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, ...

Re: Undeclared identifier: 'leAES256'

Posted: Tue 18 Sep 2012 15:43
by ecl
Thanks.