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
...全文
164 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
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
  • 打赏
  • 举报
回复
看来是头文件里面的定义有问题吧
一款用于共享软件加密的动态链接库文件,包含了获取硬盘物理序列号及BlowFish、MD5、SHA512、RIPEMD160、Secret16、MD5FileCheck、CRCFileCheck等多种强大加密算法,可以非常方便的用于软件的各类加密需求。支持VC/VB/BCB/Delphi等各类Windows平台下的开发工具,软件同时提供详细的函数定义说明、示例及各类开发工具使用的源代码。 软件功能: (1)可用于获取硬盘序列号(IDE/SCSI),支持Win9x/Me/NT/2000/XP。 (2)内置BlowFish、MD5、SHA512、RIPEMD160、Secret16、MD5FileCheck、 CRCFileCheck等多种强大加密算法来对软件进行加密保护。 (3)支持Window平台下的各类开发工具,如VC/VB/BCB/Delphi/PB/VFP等。 (4)可以非常方便的同时使用多种加密算法来对软件进行加密保护。 打包文件说明: Reg.dll-------------------加密算法动态链接库文件。 Reg.h---------------------在 VC(C/C++) 和 BCB 开发环境下的头文件。 Reg.lib-------------------在 VC(MFC) 开发环境下的 Library 文件。 Reg.bas-------------------在 VB 开发环境下的 Module 文件。 Readme.txt----------------纯文本格式说明文件。 Help.chm------------------函数接口详细定义说明文件。 MFC_TestEncryDll.zip------MFC调用Reg.dll进行加密示例。 VB6_TestEncryDll.zip------VB6调用Reg.dll进行加密示例。 CB5_TestEncryDll.zip------BCB5调用Reg.dll进行加密示例。 Delphi_TestEncryDll.zip---Delphi调用Reg.dll进行加密示例。 函数详细说明请参见Help.chm中具体函数说明部分及相关示例代码。

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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