发布时间:2014-06-11 14:41:08
int CSerialPort::str2Hex(CString str, CString &data){int t,t1;int rlen=0,len=str.GetLength();if(!((len-1)%2)){rlen=0;return rlen;}LPTSTR pBuffer = data.GetBuffer((len+1)/2); for (int i=0;i<len;){char l,h=str[i];if (h==' '){i++;continue;}i++;if (i>=len)break;l=str[i];t=He.........【阅读全文】