From: Me on
I use the following routines to send(works fine) and receive(not working) to
send and receive binary data.

bool CPSMDlg::SendChar()
{
CByteArray btArray;

btArray.Add (DataByte);
COleVariant var(btArray);
m_comm.SetOutput(var);
return true;
}

bool CPSMDlg::GetChar()
{
COleVariant myVar;
CString sBuffer;

myVar.Attach (m_comm.GetInput());
sBuffer = myVar.bstrVal;
get=sBuffer[0];
return true;
}

Can someone tell me why all I seem to get from com1 is 0x01's.
Please make any changes necessary to help me get the GetChar working.
Also I need to know how to flush the port of any extra data.

I really preferr not to change horses in mid stream unless I have to.

Thanks,
Ed