CnPack Forum


 
Subject: 调试时不能传值给对应控件属性
wfymqj
灌水科科长
Rank: 3Rank: 3



UID 1023
Digest Posts 0
Credits 178
Posts 70
点点分 178
Reading Access 10
Registered 2005-9-6
Location 湖北
Status Offline
Post at 2007-7-13 20:11  Profile | Blog | P.M. 
调试时不能传值给对应控件属性

动态库在Windows中注册后,导入到Delphi的Pas文件,调试时,将鼠标放在对应控件的属性上,提示如下
Function to be called,TClassSource.Get_CommPort,was eliminated by Linker;
Function to be called,TClassSource.Get_CommSetting,was eliminated by Linker

请问这个问题如何解决啊
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-7-14 23:27  Profile | Blog | P.M. 
关掉编译优化选项看看?
Top
wfymqj
灌水科科长
Rank: 3Rank: 3



UID 1023
Digest Posts 0
Credits 178
Posts 70
点点分 178
Reading Access 10
Registered 2005-9-6
Location 湖北
Status Offline
Post at 2007-7-16 10:27  Profile | Blog | P.M. 
我只有下面几个编译选项未选中,其它的都选上了,还是同样的问题
Optimization 、
Complete boolean eval 、
Typed@operator 、
Assignable typed constants

我引用的Cj_Source.dll在VB中引用导入,是可以用的
Cj_Source.dll这个库可能也是VB编写的(不确定,因这是别的厂商提供的)
请问这有相关性吗,我用的是Delphi7
Top
zzzl (早安的空气)
版主
Rank: 7Rank: 7Rank: 7



UID 590
Digest Posts 0
Credits 399
Posts 199
点点分 399
Reading Access 100
Registered 2004-11-29
Status Offline
Post at 2007-8-2 08:48  Profile | Blog | P.M.  | QQ
干脆把值读到临时变量里看吧
Top
stanleyxu2005
新警察
Rank: 1



UID 5617
Digest Posts 1
Credits 45
Posts 15
点点分 45
Reading Access 10
Registered 2007-2-11
Status Offline
Post at 2007-8-2 09:58  Profile | Site | Blog | P.M. 
你可以平时多定义一些配置,调试的时候,打开debug information然后关掉optimization,并且打开range check、io check、overflow check。




http://getgosurf.com/forum/
Top
 




All times are GMT++8, the time now is 2024-11-23 10:26

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

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