bcb打包DLL出现问题

gdkjzcc 2009-08-11 11:27:55
程序就是把写好的代码打包做成DLL 用接口对源码进行封装,但是我Dll文件老是出现下面的错误,怎么回事?原来程序没问题,就附加了个DLL项目,就出现了这么多问题,,,,谁指点下 如果我的思路本来就错了劳驾指点下怎么做,详细点,新人不怎么会!!!谢谢了!!!
[C++ Error] Device_Globa.h(141): E2015 Ambiguity between 'TImage' and 'Qextctrls::TImage'
[C++ Error] Device_Globa.h(158): E2015 Ambiguity between 'TImage' and 'Qextctrls::TImage'
[C++ Error] Device_Globa.h(159): E2015 Ambiguity between 'TImage' and 'Qextctrls::TImage'
[C++ Error] Device_Globa.h(160): E2015 Ambiguity between 'TImage' and 'Qextctrls::TImage'
[C++ Error] Device.h(19): E2015 Ambiguity between 'TForm' and 'Qforms::TForm'
[C++ Error] Device.h(21): E2015 Ambiguity between 'TTreeView' and 'Qcomctrls::TTreeView'
[C++ Error] Device.h(22): E2015 Ambiguity between 'TPanel' and 'Qextctrls::TPanel'
[C++ Error] Device.h(23): E2015 Ambiguity between 'TImage' and 'Qextctrls::TImage'
[C++ Error] Device.h(24): E2015 Ambiguity between 'TLabel' and 'Qstdctrls::TLabel'
[C++ Error] Device.h(25): E2015 Ambiguity between 'TBitBtn' and 'Qbuttons::TBitBtn'
[C++ Error] Device.h(26): E2015 Ambiguity between 'TBitBtn' and 'Qbuttons::TBitBtn'
[C++ Error] Device.h(27): E2015 Ambiguity between 'TBitBtn' and 'Qbuttons::TBitBtn'
[C++ Error] Device.h(28): E2015 Ambiguity between 'TLabel' and 'Qstdctrls::TLabel'
[C++ Error] Device.h(33): E2015 Ambiguity between 'TTreeNode' and 'Qcomctrls::TTreeNode'
[C++ Error] Device.h(40): E2015 Ambiguity between 'TForm' and 'Qforms::TForm'
[C++ Error] Device.h(41): E2015 Ambiguity between 'TForm' and 'Qforms::TForm'
[C++ Error] index_info.h(15): E2015 Ambiguity between 'TForm' and 'Qforms::TForm'
[C++ Error] index_info.h(17): E2015 Ambiguity between 'TPopupMenu' and 'Qmenus::TPopupMenu'
[C++ Error] index_info.h(18): E2015 Ambiguity between 'TMenuItem' and 'Qmenus::TMenuItem'
[C++ Error] index_info.h(19): E2015 Ambiguity between 'TMenuItem' and 'Qmenus::TMenuItem'
[C++ Error] index_info.h(20): E2015 Ambiguity between 'TMenuItem' and 'Qmenus::TMenuItem'
[C++ Error] index_info.h(21): E2015 Ambiguity between 'TMenuItem' and 'Qmenus::TMenuItem'
[C++ Error] index_info.h(22): E2015 Ambiguity between 'TMenuItem' and 'Qmenus::TMenuItem'
[C++ Error] index_info.h(23): E2015 Ambiguity between 'TMenuItem' and 'Qmenus::TMenuItem'
[C++ Error] index_info.h(24): E2015 Ambiguity between 'TMenuItem' and 'Qmenus::TMenuItem'
[C++ Error] index_info.h(24): E2228 Too many error or warning messages
...全文
139 2 打赏 收藏 举报
写回复
2 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
fairchild811 2009-08-11
  • 打赏
  • 举报
回复
TPopupMenu and Qmenus::TPopupMenu

等等,这些组件同名了,所以出现 模棱两可 的调用,因为系统不知道调用哪个。你调用时需要显式指定Qmenus::TPopupMenu。


类似
TBitmap *bmp; 会出现 Ambiguity between 'TBitmap' and 'Windows::TBitmap'

此时需要Graphics::Tbitmap *bmp;
xjq2003 2009-08-11
  • 打赏
  • 举报
回复
看来是头文件里面的定义有问题吧
相关推荐
发帖
C++ Builder

1.3w+

社区成员

C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
帖子事件
创建了帖子
2009-08-11 11:27
社区公告
暂无公告