CnPack Forum


 
Subject: 求助,如何在cb中使用组件包
elance
新警察
Rank: 1



UID 33078
Digest Posts 0
Credits 22
Posts 9
点点分 22
Reading Access 10
Registered 2007-12-4
Status Offline
Post at 2007-12-5 13:14  Profile | Blog | P.M. 
求助,如何在cb中使用组件包

如何在cb中使用组件包?
安装完组件包后,怎么还是不能用?
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2007-12-5 13:31  Profile | Blog | P.M. 
是否是CVS上的最新代码?网站上供直接下载的zip包比较老,不太推荐。

打开对应版本的bpk后编译安装,这一步能成功吗?
如果成功了,组件板上出现了组件吗?
如果出现了就可以用了。
Top
elance
新警察
Rank: 1



UID 33078
Digest Posts 0
Credits 22
Posts 9
点点分 22
Reading Access 10
Registered 2007-12-4
Status Offline
Post at 2007-12-5 14:16  Profile | Blog | P.M. 
谢谢。用的是网站上提供的。

提示bpk编译安装成功,可是组件板上没见到组件。
Top
elance
新警察
Rank: 1



UID 33078
Digest Posts 0
Credits 22
Posts 9
点点分 22
Reading Access 10
Registered 2007-12-4
Status Offline
Post at 2007-12-5 15:30  Profile | Blog | P.M. 
用的是20061001
是否还要设置一些文件的路径?
Top
elance
新警察
Rank: 1



UID 33078
Digest Posts 0
Credits 22
Posts 9
点点分 22
Reading Access 10
Registered 2007-12-4
Status Offline
Post at 2007-12-5 16:50  Profile | Blog | P.M. 
下载了最新版。dclCnPack_CB6.bpk编译出错。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2007-12-5 19:46  Profile | Blog | P.M. 
是从CVS上倒过来的?bcb6编译出什么错?
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2007-12-5 19:47  Profile | Blog | P.M. 
要先编译运行期的包,再编译安装设计期的包。
Top
elance
新警察
Rank: 1



UID 33078
Digest Posts 0
Credits 22
Posts 9
点点分 22
Reading Access 10
Registered 2007-12-4
Status Offline
Post at 2007-12-6 13:26  Profile | Blog | P.M. 
先编译CnPack_CB6.bpk,成功后提示有warnings,[C++ Warning] CnPack_CB6.cpp(4): W8058 Cannot create pre-compiled header: write failed
  而且CnPack_CB6.obj如图:


Image Attachment: 1.JPG (2007-12-6 13:26, 13.11 K)



  然后编译dclCnPack_CB6.bpk,报错:


Image Attachment: 2.JPG (2007-12-6 13:26, 61.26 K)



[ 本帖最后由 elance 于 2007-12-6 13:30 编辑 ]
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2007-12-7 20:37  Profile | Blog | P.M. 
每次编译包前,请删除所有上次生成的编译的dcu、obj等文件?
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2007-12-7 20:40  Profile | Blog | P.M. 
cnpack模块的根目录下有个cleanInplace.bat,可用于删除临时文件。
Top
elance
新警察
Rank: 1



UID 33078
Digest Posts 0
Credits 22
Posts 9
点点分 22
Reading Access 10
Registered 2007-12-4
Status Offline
Post at 2007-12-7 21:50  Profile | Blog | P.M. 
执行cleanInplace.bat后,
重新编译,还是8楼我描述的错误,
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2007-12-8 12:13  Profile | Blog | P.M. 
实在奇怪。是否严格按照了一下步骤?

1.从CVS上倒下了cnpack的最新代码来。
2.执行cleanInplace.bat
3.编译lCnPack_cb6.dpk
4.执行cleanInplace.bat
5.编译dclCnPack_cb6.dpk

CnPack_cb6.obj文件大小应该是正常的。
可能你的BCB6缺乏某些IDE包,
是完整安装的BCB6吗?
Top
elance
新警察
Rank: 1



UID 33078
Digest Posts 0
Credits 22
Posts 9
点点分 22
Reading Access 10
Registered 2007-12-4
Status Offline
Post at 2007-12-8 13:46  Profile | Blog | P.M. 
是按照您上述的步骤执行的,BCB6也是完全安装。
实在不行我试试装一下BCB2007,不知CNPACK组件支持BCB2007不支持?
Top
elance
新警察
Rank: 1



UID 33078
Digest Posts 0
Credits 22
Posts 9
点点分 22
Reading Access 10
Registered 2007-12-4
Status Offline
Post at 2007-12-8 14:56  Profile | Blog | P.M. 
果然是我的BCB有问题,我重装了一边,选择了typical安装,然后可以cnpack组件安装成功。
谢谢老大的关注!!!
Top
 




All times are GMT++8, the time now is 2024-11-24 12:32

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.009445 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP