need suggestion about serial port programming

  • Thread starter Thread starter pei_world
  • Start date Start date
P

pei_world

Hi there,
I am using a tool kit from
ActiveComport(http://www.activexperts.com/activcomport/) serial port tools
kit. I have my sending method working, but I am having problem with my
reading method. anyone used this lib before? Please give me some hits.
following is my code for receiving data:

//=========================================
private void receiveData()
{
string receiveText;
//while(true)
//{
this.axComPort1.ComTimeout=5000;
receiveText = this.axComPort1.ReadString();

if(receiveText.Length>0|| !this.listened)
{
this.txtShow.Text+="|"+receiveText;
this.lstReceive.Items.Add(receiveText);
//break;
}
//}
}
//==========================================

Thanks




Pei
 
No but there is a free tool written by an MS employee that I've been using for a while. I'm not sure how to find it, I think it was
called CommBase.
 
I have that as well, but I am not quite sure how it can be used in my
application.
can you help me?
my msn:p[email protected]

pei


Michael Culley said:
No but there is a free tool written by an MS employee that I've been using
for a while. I'm not sure how to find it, I think it was
 
Back
Top