A fresh-girl with puzzle dom
it about serial COM port communications with MSComm,i used ' do{...}while ' to instead of OnComm event,example:
byte[] inDate;
do
{
System.Windows.Forms.Application.DoEvents();
}while(com.InBufferCount==0);
byte[] inData=new byte[com.inBufferCount];
inDate=(byte[])com.Input;
my program is that recieve one byte and send one byte to confirm communication is correct,then recieve the last 292 bytes, but why when the device send bytes to com, the indate only can find 8 bytes?

AdministratorRank #675 · 3.6K reputationPosted Mar 14, 2003, 2:14 AM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 16, 2003, 2:40 PM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 17, 2003, 7:51 AM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 19, 2003, 3:39 PM EST