我使用Xiangqi 1.0 中国象棋的DELPHI控件,但编译出错.急!(100分)

  • 主题发起人 主题发起人 roc
  • 开始时间 开始时间
R

roc

Unregistered / Unconfirmed
GUEST, unregistred user!
我使用Xiangqi 1.0 中国象棋的DELPHI控件,但编译出错:
function GetPieceBitmap(PieceIndex: Cardinal):TBitmap;
function GetBoard(XPos, YPos: Cardinal):PPieceInfo;
....
property PieceBitmap[PieceIndex: Cardinal]:TBitmap read GetPieceBitmap;
property Board[XPos, YPos: Cardinal]:PPieceInfo read GetBoard write SetBoard; default;
错误信息:
[Error]Xiangqi.pas(173):Published property 'PieceBitmap' cannot be of type ARRAY
[Error]Xiangqi.pas(174):Published property 'Board' cannot be of type ARRAY
我用的是DELPHI5.0,能否告知什么原因,怎样解决?
急!
 
function GetPieceBitmap(PieceIndex: Cardinal):TBitmap;
function GetBoard(XPos, YPos: Cardinal):PPieceInfo;
应定义在 private
property PieceBitmap[PieceIndex: Cardinal]:TBitmap read GetPieceBitmap;
property Board[XPos, YPos: Cardinal]:PPieceInfo read GetBoard write SetBoard; default;
应定义在 public
 
接受答案了.
 
后退
顶部