Undeclared identifier: 'TBytes'

czkun 2013-06-06 04:58:19
delphi7 编译时,出现这个问题:Undeclared identifier: 'TBytes',该如何解决、
...全文
403 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
feiba7288 2013-06-07
  • 打赏
  • 举报
回复
引用 4 楼 czkun 的回复:
unit uUIBaseFun; interface uses Windows, SysUtils, StrUtils, DateUtils, Controls, Forms, uComPram, udmCommon, EZDSLHsh, GridsEh, DBGridEh, DBClient, IdGlobal, StdCtrls; function UILogin: Boolean; function EnCryptSFile(EnPack: TBytes): string;//这里就错了
Delphi7中没有,你可以修改成下面这样: unit uUIBaseFun; interface uses Windows, SysUtils, StrUtils, DateUtils, Controls, Forms, uComPram, udmCommon, EZDSLHsh, GridsEh, DBGridEh, DBClient, IdGlobal, StdCtrls; type TBytes = array of Byte; function UILogin: Boolean; function UISelectSvr: Boolean; procedure UIAbort; procedure UICloseAbout; function InitSocketConnection: Boolean; procedure InitDBGridColumeTitle(Grid: TDBGRIDEH; TableName: string); procedure InitDBGridColumeTitle_BJDB(Grid: TDBGRIDEH; TableName: string); function EnCryptSFile(EnPack: TBytes): string;//这里就错了
s11ss 2013-06-07
  • 打赏
  • 举报
回复
引用types单元
s11ss 2013-06-07
  • 打赏
  • 举报
回复
把TBytes改成TByteDynArray
czkun 2013-06-06
  • 打赏
  • 举报
回复
unit uUIBaseFun; interface uses Windows, SysUtils, StrUtils, DateUtils, Controls, Forms, uComPram, udmCommon, EZDSLHsh, GridsEh, DBGridEh, DBClient, IdGlobal, StdCtrls; function UILogin: Boolean; function UISelectSvr: Boolean; procedure UIAbort; procedure UICloseAbout; function InitSocketConnection: Boolean; procedure InitDBGridColumeTitle(Grid: TDBGRIDEH; TableName: string); procedure InitDBGridColumeTitle_BJDB(Grid: TDBGRIDEH; TableName: string); function EnCryptSFile(EnPack: TBytes): string;//这里就错了
czkun 2013-06-06
  • 打赏
  • 举报
回复
Delphi7中,已引用了SysUtils
feiba7288 2013-06-06
  • 打赏
  • 举报
回复
在SysUtils单元下,Delphi7中没有。
feiba7288 2013-06-06
  • 打赏
  • 举报
回复
Delphi2007自己定义了TBytes type TBytes = array of Byte;

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧