将 LockBox 3 安装到 Delphi 7

Installing LockBox 3 to Delphi 7

我正在尝试将 Lockbox 3.5 安装到 Delphi 7。我已经到了应该编译的地步,但我在使用 TBytes 时遇到了一些问题。 Delphi 将 TBytes 视为 Undeclared identifier

我是一名大一学生,不知道如何解决这个问题。

function SelfTest_Key: TBytes; 

此脚本位于 uTPLb_BlockCipher 下。

function Stream_to_Base64(ASource: TStream; const ATransform: TBytes = nil) : TBytes; 

此脚本位于 uTPLb_StreamUtils

如果有任何意见,我将不胜感激。

来自项目release history

Version 3.5.0

  • Removed support for all other compilers (other than XE6 and D2010). The return of support for other compilers will be coming soon.
  • ...

来自项目website

With 3.5.0 as the baseline, the 3.6.0 version delivers:

  • Support for all compilers from Delphi 7 and up (although only package heads for D2010 and XE6 written at the moment).
  • ...

上面的页面包含一个 link 到 download area,上面写着:

LTS - the Long Term Support release

This is the "Long Term Support" (LTS) version. This release is typically used for Enterprise deployments or other users that do not want frequent major upgrades .

The current LTS version is 3.5.0 . The LTS was set to this version on 11-Jul-2014. The LTS can be downloaded from SourceForge here https://tplockbox.googlecode.com/svn/tags/LB%203.5.0.0%2011-Jul-2014.

STABLE - the current stable release

Recommended to users who want a stable high quality product, and timely access to enhancements and defect corrections.

The current STABLE version is 3.6.0 . The STABLE was set to this version on 11-Nov-2014. The STABLE can be downloaded from SourceForge here https://tplockbox.googlecode.com/svn/tags/LB%203.6.0.0%2010-Nov-2014/.

所以,看来您需要下载 3.6.0 版。

请花时间阅读上面 link 页面上的文档。