在编译《c++builder高级应用开发指南》代码时出错

chinayu2007 IT运维经理  2013-08-02 07:08:38
在《c++builder高级应用开发指南》第6章,创建定制组件的代码,是针对bcb5版本的,在bcb6中编译出错,如下:

[Linker Error] Unresolved external '__tpdsc__ Designeditors::TPropertyEditor' referenced from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\桌面\高级应用开发指南\CODE1\CUSTOM COMPONENT\MYCOMPONENT.OBJ
[Linker Error] Unresolved external 'Designeditors::TPropertyEditor::' referenced from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\桌面\高级应用开发指南\CODE1\CUSTOM COMPONENT\MYCOMPONENT.OBJ
[Linker Error] Unresolved external '__fastcall Designeditors::TPropertyEditor::~TPropertyEditor()' referenced from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\桌面\高级应用开发指南\CODE1\CUSTOM COMPONENT\MYCOMPONENT.OBJ
[Linker Error] Unresolved external '__fastcall Designeditors::TPropertyEditor::Initialize()' referenced from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\桌面\高级应用开发指南\CODE1\CUSTOM COMPONENT\MYCOMPONENT.OBJ
[Linker Error] Unresolved external '__fastcall Designeditors::TPropertyEditor::SetPropEntry(int, Classes::TPersistent *, Typinfo::TPropInfo *)' referenced from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\桌面\高级应用开发指南\CODE1\CUSTOM COMPONENT\MYCOMPONENT.OBJ
[Linker Error] Unresolved external '__fastcall Designeditors::TPropertyEditor::TPropertyEditor(const System::DelphiInterface<Designintf::IDesigner>, int)' referenced from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\桌面\高级应用开发指南\CODE1\CUSTOM COMPONENT\MYCOMPONENT.OBJ
[Linker Error] Unresolved external '__fastcall Designeditors::TPropertyEditor::Activate()' referenced from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\桌面\高级应用开发指南\CODE1\CUSTOM

还有很多,请问这个组件,在bcb6如何编译?
...全文
70 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
关工 2013-08-03
很明显缺少包含类TPropertyEditor的库文件,找下看,比如.bpl, .dll, .lib文件,看下相关的,加到工程中。这个错误就能解决。
回复
sololie 2013-08-03
这本书好像俺也有,但貌似都没看过,只有名字有印象
回复
chinayu2007 2013-08-02
在require中添加designide60.bpl就可以了
回复
组件导入不成功或者未注册
回复
相关推荐
发帖
C++ Builder
创建于2007-08-02

1.3w+

社区成员

C++ Builder相关内容讨论区
申请成为版主
帖子事件
创建了帖子
2013-08-02 07:08
社区公告
暂无公告