Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» 关于组件包的使用问题
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 关于组件包的使用问题
eyesonly
新警察
UID 40870
Digest Posts 0
Credits 20
Posts 8
点点分 20
Reading Access 10
Registered 2008-9-2
Status Offline
#1
Post at 2008-9-13 13:31
Profile
|
Blog
|
P.M.
关于组件包的使用问题
我仅仅建立一个VCL窗口,添加按钮控件
未添加关联代码
但是编译的时候错误为:缺少XXX.dcu文件
组件编译正确,安装也正常
版本为2007
rarnu
(橙子)
灌水部部长
UID 2689
Digest Posts
11
Credits 648
Posts 209
点点分 648
Reading Access 10
Registered 2006-10-2
Status Offline
#2
Post at 2008-9-14 08:18
Profile
|
Site
|
Blog
|
P.M.
在Library path里,把cnpack组件包的source目录配置去
Rarnu
CnPack Interfacer
rarnu@cnpack.org
eyesonly
新警察
UID 40870
Digest Posts 0
Credits 20
Posts 8
点点分 20
Reading Access 10
Registered 2008-9-2
Status Offline
#3
Post at 2008-9-15 01:04
Profile
|
Blog
|
P.M.
QUOTE:
原帖由 rarnu 于 2008-9-14 08:18 发表
在Library path里,把cnpack组件包的source目录配置去
好的,我试试
感谢回复
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#4
Post at 2008-9-15 10:00
Profile
|
Blog
|
P.M.
大多数第三方控件编译安装后使用时都需要这样加路径。
eyesonly
新警察
UID 40870
Digest Posts 0
Credits 20
Posts 8
点点分 20
Reading Access 10
Registered 2008-9-2
Status Offline
#5
Post at 2008-9-17 00:11
Profile
|
Blog
|
P.M.
cnpack组件包的source目录配置好了
又发生错误:找不到文件cnpack.inc
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#6
Post at 2008-9-17 10:15
Profile
|
Blog
|
P.M.
把source目录下面的子目录挨个加入。
光加source没用。
eyesonly
新警察
UID 40870
Digest Posts 0
Credits 20
Posts 8
点点分 20
Reading Access 10
Registered 2008-9-2
Status Offline
#7
Post at 2008-9-17 13:20
Profile
|
Blog
|
P.M.
QUOTE:
原帖由
Passion
于 2008-9-17 10:15 发表
把source目录下面的子目录挨个加入。
光加source没用。
除了lang目录,其他都加了,还是找不到cnpack.inc
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#8
Post at 2008-9-17 13:29
Profile
|
Blog
|
P.M.
CnPack.inc在Source\Common目录下,再检查一下?
rarnu
(橙子)
灌水部部长
UID 2689
Digest Posts
11
Credits 648
Posts 209
点点分 648
Reading Access 10
Registered 2006-10-2
Status Offline
#9
Post at 2008-9-17 16:23
Profile
|
Site
|
Blog
|
P.M.
我印象中,for D2009的版本,是把inc移去了package目录下
楼主会不会是下了D2009的?
Rarnu
CnPack Interfacer
rarnu@cnpack.org
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#10
Post at 2008-9-17 16:54
Profile
|
Blog
|
P.M.
楼主在顶楼说了D2007.
eyesonly
新警察
UID 40870
Digest Posts 0
Credits 20
Posts 8
点点分 20
Reading Access 10
Registered 2008-9-2
Status Offline
#11
Post at 2008-9-17 22:41
Profile
|
Blog
|
P.M.
是我看错了,抱歉两位,是D2009
后来我把cnpack.inc文件向source的所有子目录都复制了一份就可以编译了
想知道具体是什么原因造成的?请教
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#12
Post at 2008-9-17 22:59
Profile
|
Blog
|
P.M.
源码中使用了这个inc,在D2009的包中,inc文件在Package目录下的D2009目录下吧,那么这个目录也需要加入搜索路径。
总之一句话,编译用到的所有文件的所在目录都得在搜索路径下。
如果碰到啥文件找不到,可以搜一下看看在那儿然后把它的目录加入搜索路径。
zp0816
新警察
UID 40723
Digest Posts 0
Credits 4
Posts 2
点点分 4
Reading Access 10
Registered 2008-8-1
Status Offline
#13
Post at 2008-11-5 18:21
Profile
|
Blog
|
P.M.
今天 俺也碰到这样的问题,又学习了一招!
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 13:36
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.008908 second(s), 7 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats