捐赠 | 广告 | 注册 | 发布 | 上传 | 关于我们    
  粤ICP备10103342号-1 DELPHI盒子 | 盒子文章 | 盒子问答悬赏 | 最新更新 | 盒子检索 | 下载中心 | 高级搜索    
  精品专区 | 繁體中文 | 奖励公告栏 | 直通车账号登陆 | 关闭GOOGLE广告 | 临时留言    
 
广告
评论:CPort v3.1 (串口控件)
xunfengxin 62257 2013/10/11 19:48:53
为什么都用了这个控件,但是源程序编译没问题,但是添加一个comport控件就出现这种错误呢?  大神,求解
kts832330 39473 2010/1/23 9:54:55
请问各位老鸟,在Delphi7下怎么安装?先谢了
acer_w 37396 2009/5/3 12:36:44
利用这个Cport控件,接收大量数据(40K Buty )会发生接收个数错误,请问是什么原因啊?
samsonfly 34681 2008/6/18 15:33:53
nevergrief,真是太感谢你啦
nevergrief 30698 2007/8/6 9:26:56
CPort264 以上在BCB6下编译问题的解决

CPort很好用,CPort2.63以下在BCB5下编译安装没问题。可是大家现在一般都用BCB6吧,CPort2.63却在BCB6下不能升级编译,只好安装CPort2.64到CPort3.10之间的版本。这几个版本在Delphi下安装使用都没有问题,但BCB6下编译安装却有2个问题,第二个问题还很麻烦!原因我觉得可能是CPort作者不负责任!这对初学者(当然我也是初学者)来说可能还不容易解决,至少我在网上搜了半天说什么的都有,也没见到什么有效的解决办法。搜到一模一样的问题就连在外国论坛上有人提问也是没人回答,后来终于自己解决了,如下:

安装问题:很简单,重复声明:

[C++ Error] CPort.hpp(683): E2238 Multiple declaration for '_fastcall EComPort::EComPort(int)'
[C++ Error] CPort.hpp(675): E2344 Earlier declaration of '_fastcall EComPort::EComPort(int)'
[C++ Error] CPort.hpp(695): E2238 Multiple declaration for '_fastcall EComPort::EComPort(int,int)'
[C++ Error] CPort.hpp(674): E2344 Earlier declaration of '_fastcall EComPort::EComPort(int,int)'

解决办法:不用怕,屏蔽以下2句话:
// __fastcall EComPort(int ACode, int AWinCode);
// __fastcall EComPort(int ACode);


编译使用时的问题:SetPortA函数的obj对象找不到:
[Linker Error] Unresolved external '__fastcall Cport::TCustomComPort::SetPortA(const System::AnsiString)' referenced from E:\BCB_JIN\TESTCOM\TESTCOM.OBJ

解决办法:找到以下三句话:
procedure SetPort(const Value: TPort);
property Port: TPort read FPort write SetPort;
procedure TCustomComPort.SetPort(const Value: TPort);

改成:
procedure SetPortA(const Value: TPort);
property Port: TPort read FPort write SetPortA;
procedure TCustomComPort.SetPortA(const Value: TPort);

其实估计大家一般使用    
ComPort->Port = Port;
就行了。SetPortA也没什么用,却严重影响编译使用。所以大家放心大胆改原函数吧,没事的(不改的话还能怎么办?没法用呀!)。
dragonhux 29975 2007/6/14 10:01:31
在支持多串口卡的时候出现问题,不知道这个版本怎么样?
z954134 29973 2007/6/14 8:56:34
通讯时,屏幕闪烁怎么解决阿
xyb 26654 2006/10/19 0:11:20
我在delphi7安装成功,试用效果看看先
delphi1977 25895 2006/9/6 11:45:01
将sources路径加入到Libary path。
czcbk 25671 2006/8/26 12:33:15
我用2006编译时候提示:file not found "cport.dcu"
makingmaking1 25505 2006/8/17 13:14:22
为什么我装了以后BUILD不过,老是提示以下错误信息,请高手指点:
[C++ Error] CPort.hpp(683): E2238 Multiple declaration for '_fastcall EComPort::EComPort(int)'
[C++ Error] CPort.hpp(675): E2344 Earlier declaration of '_fastcall EComPort::EComPort(int)'
[C++ Error] CPort.hpp(695): E2238 Multiple declaration for '_fastcall EComPort::EComPort(int,int)'
[C++ Error] CPort.hpp(674): E2344 Earlier declaration of '_fastcall EComPort::EComPort(int,int)
isxuzhu 24568 2006/6/26 15:46:27
谢谢提供!这是有屎以来最好用的串口控件!!
skywolf 22606 2006/4/3 9:56:48
为什么我装了以后BUILD不过,老是提示以下错误信息,请高手指点:
[C++ Error] CPort.hpp(683): E2238 Multiple declaration for '_fastcall EComPort::EComPort(int)'
[C++ Error] CPort.hpp(675): E2344 Earlier declaration of '_fastcall EComPort::EComPort(int)'
[C++ Error] CPort.hpp(695): E2238 Multiple declaration for '_fastcall EComPort::EComPort(int,int)'
[C++ Error] CPort.hpp(674): E2344 Earlier declaration of '_fastcall EComPort::EComPort(int,int)'
lijinjie 22278 2006/3/21 12:13:08
不错..呵呵.
fanyw 22091 2006/3/13 19:52:19
你这个控件是什么用的,是从那里下载
第一页 上一页 下一页 最后页 有 15 条纪录 共1页 1 - 15
 用户名:
 密 码:
自动登陆(30天有效)
 
  DELPHI盒子版权所有 技术支持:深圳市麟瑞科技有限公司 1999-2024 V4.01 粤ICP备10103342号-1 更新RSS列表