T
tiger21
Unregistered / Unconfirmed
GUEST, unregistred user!
请问各位:
我把spcomm控件封装到了我的自己的类里了,现在我不知该如何响应spcomm的onreceivedata
事件,我自己写了好像响应不了
type
TIOCard = class(TComponent)
Comm1: TComm;
procedure Comm1ReceiveData(Sender: TObject; Buffer: Pointer;
BufferLength: Word);
private
public
constructor Create(Awoner:TComponent);override;
destructor Destroy;override;
end;
然后在onreceivedata里写程序好像不起作用?
我把spcomm控件封装到了我的自己的类里了,现在我不知该如何响应spcomm的onreceivedata
事件,我自己写了好像响应不了
type
TIOCard = class(TComponent)
Comm1: TComm;
procedure Comm1ReceiveData(Sender: TObject; Buffer: Pointer;
BufferLength: Word);
private
public
constructor Create(Awoner:TComponent);override;
destructor Destroy;override;
end;
然后在onreceivedata里写程序好像不起作用?