TurboPower Async的问题。(100分)

  • 主题发起人 主题发起人 wukui
  • 开始时间 开始时间
W

wukui

Unregistered / Unconfirmed
GUEST, unregistred user!
我利用TurboPower Async在本机调试串口通信程序。
因为笔记本只有一个串口,所以我将2、3口短接,用一个串口同时收发。
在Delphi中,如果发送和接收都在一个程序中实现,收发都正常;
如果分别写单独的发送和接收程序,无法正常收发。
哪位大侠用过TurboPower Async的,请随收写两行程序,
只要发送和接收是两个独立程序,能正确收发就好了。
谢谢!
 
spcomm源代码

发收两个独立线程。。

TurboPower Async没用过。

你把你代码发上来看看
 
我在台式机上将两个串口相连,2-3,5-5,
在一个程序中用两个ApdComPort分别只想Com1和Com2,
程序如下:没有触发响应事件。
请大侠指教。

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, OoMisc, AdPort;

type
TForm1 = class(TForm)
ApdComPort1: TApdComPort;
ApdComPort2: TApdComPort;
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure ApdComPort2TriggerAvail(CP: TObject; Count: Word);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
ApdComPort1.Output := 'abcd';
end;

procedure TForm1.ApdComPort2TriggerAvail(CP: TObject; Count: Word);
begin
showmessage('received');
end;

end.
 
我想帮您,可惜我在install Component - Async tapi AproReg.pas 出错,可以帮助我看看吗?谢!
如下:
[Error] WARNING. Duplicate resource(s):
[Error] Type 2 (BITMAP), ID TADMODEM:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TADMODEMSTATUS:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TADTERMINAL:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TADTTYEMULATOR:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TADVT100EMULATOR:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDACTIONSTATE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDCOMPORT:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDDATAPACKET:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDDIALERDIALOG:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXCLIENT:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXCONVERTER:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXDRIVERINTERFACE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXLOG:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXPRINTER:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXPRINTERLOG:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXPRINTERSTATUS:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXSERVER:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXSERVERMANAGER:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXSTATUS:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXUNPACKER:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFAXVIEWER:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFTPCLIENT:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDFTPLOG:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDGSMPHONE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDPAGER:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDPAGERLOG:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDPROTOCOL:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDPROTOCOLLOG:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDPROTOCOLSTATUS:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDRASDIALER:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDRASSTATUS:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDRECEIVEFAX:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDRECEIVEFAXSTATE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDRECEIVEFILESTATE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSAPIENGINE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSAPIPHONE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSAPISPEAKSTATE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSCRIPT:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSENDFAX:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSENDFAXSTATE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSENDFILESTATE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSLCONTROLLER:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSNPPPAGER:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSTATE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSTATECOMPORTSOURCE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSTATEGENERICSOURCE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSTATEMACHINE:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSTATEMACHINE1:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDSTATUSLIGHT:
[Error] File C:/Program Files/Borland/Delphi6/Lib/AproReg.dcr resource kept; file APROREG.DCR resource discarded.
[Error] Type 2 (BITMAP), ID TAPDTAPIDEVICE:
[Fatal Error] Compilation terminated; too many errors
 
我的问题已经自己解决了!
谢谢各位的关注。
To pcelong:
去Delphi窑洞,下一个自动安装版就OK了。
 
又碰到一个问题了。
在发送数据量增大后,经常会报错:
“output buffer too small for block”。
有时会,有时不会,好像具有偶然性。

请大家指点一下。
谢谢。
这个问题解决后分分。
 
看懂TUOBO POWER自带的DEMO
 
问题解决了:)
 
to wukui:
我现在也是用这个控件,你能不能给我点例子或资料!
谢谢!
kataboy@xjhome.com
 
kataboy:看懂TUOBO POWER自带的DEMO 足够了
 
To wukui:
OK了,Thanks!
 
大家知道turbopowerTelephone Api控件支持PPPoe等协议?
 
代码已发。
 
后退
顶部