Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» 安装cnpack时的一个问题(SCnConsoleName未找到)[已解决]
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 安装cnpack时的一个问题(SCnConsoleName未找到)[已解决]
sonicer
新警察
UID 677
Digest Posts 0
Credits 48
Posts 18
点点分 48
Reading Access 10
Registered 2005-2-1
Status Offline
#1
Post at 2008-4-10 18:28
Profile
|
Blog
|
P.M.
安装cnpack时的一个问题(SCnConsoleName未找到)[已解决]
安装cnpack_20080401.zip时,报错
[Error] CnConsole.pas(84): Undeclared identifier: 'SCnConsoleName'
[Error] CnConsole.pas(87): Undeclared identifier: 'SCnConsoleComment'
[Fatal Error] CnCompRegister.pas(52): Could not compile used unit 'CnConsole.pas'
出错代码为
procedure TCnConsole.GetComponentInfo(var AName, Author, Email,
Comment: string);
begin
AName := SCnConsoleName;
Author := SCnPack_LiuXiao;
Email := SCnPack_LiuXiaoEmail;
Comment := SCnConsoleComment;
end;
感觉很奇怪,查看CnCompConsts.pas单元,发现这两个常量已经正常定义,并发现,只有这两个常量出问题,在CnCompConsts单元中,其它常量的引用都是正常的,感觉问题相当妖异,在同一个单元中各个常量咋就区别对待嗫?
后突然想起,以前安装过旧版本,其bpl未删除,查找,删除之,再次编译就正常了。
不知道有没有其它朋友遇到过,或许有所参考价值。
另外,在安装说明中未提及旧版本需要先删除,是否可以在文档中说明一下:先删除旧有的bpl,以防不可知的问题?
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2008-4-10 18:34
Profile
|
Blog
|
P.M.
不过卸载旧的bpl也并不是必须的。只是这个问题比较奇怪,可能先于源码而去查找旧的bpl中的字符串了。
sonicer
新警察
UID 677
Digest Posts 0
Credits 48
Posts 18
点点分 48
Reading Access 10
Registered 2005-2-1
Status Offline
#3
Post at 2008-4-11 09:17
Profile
|
Blog
|
P.M.
嗯,有可能,
不过我家里的机器和公司的机器都有这个问题,不知道其它人有没有碰到过,似乎是没什么代表性的问题,呵呵
zzzl
(早安的空气)
版主
UID 590
Digest Posts 0
Credits 399
Posts 199
点点分 399
Reading Access 100
Registered 2004-11-29
Status Offline
#4
Post at 2008-4-18 08:53
Profile
|
Blog
|
P.M.
|
我遇到了,也是移除了旧的bpl,但没用,可能是因为没删除文件吧,折腾了半天,最后是直接附加新的bpl
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 12:42
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.008659 second(s), 9 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