这个错误怎么解决?

initora 2004-09-26 09:44:49
__property int IntegerField[String & Name] = {read = GetIntField, write = SetIntField};

报:

[C++ Error] DataManagementBDE.h(32): E2347 Parameter mismatch in read access specifier of property IntegerField
...全文
112 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
initora 2004-09-28
  • 打赏
  • 举报
回复
是不是要这么改?
__property int IntegerField[String Name] = {read = GetIntField, write = SetIntField};
initora 2004-09-28
  • 打赏
  • 举报
回复
还未涉及到数据库表呐,是我自己写的处理数据的类型,
xpdavis(咕嘟) :const String & Name有这么重要么?
铖邑 2004-09-27
  • 打赏
  • 举报
回复
最好用const String & Name
befree 2004-09-27
  • 打赏
  • 举报
回复
数据库中表的字段定义不相符
liuwinter 2004-09-27
  • 打赏
  • 举报
回复
参数不匹配
Lonelywolf1899 2004-09-27
  • 打赏
  • 举报
回复
参数不匹配,没有说 type(类型)啊!
initora 2004-09-26
  • 打赏
  • 举报
回复
这是我自己写的类,只是hpp名字取作DataManagementBDE而已

int GetIntField(String & Name);--这个返回值当然是int,不过编译器总是报错,怎么回事呢?
milkwayhong 2004-09-26
  • 打赏
  • 举报
回复
GetIntField函数返回值不是int???mismatch --不匹配
happyct 2004-09-26
  • 打赏
  • 举报
回复
你这是读取数据库碰到的错误?

读取时指定类型与数据库所定义的字段类型不一致?还是参数不一致,你说明清楚些

604

社区成员

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

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