64,654
社区成员
发帖
与我相关
我的任务
分享
//! 发送数据
BYTE sendArray[10];
void SayHello(DWORD dwPort)
{
CnComm Com(0);//! v1.5 阻塞IO 不启动线程模型
Com.Open(dwPort);
sendArray[0]=0xEB;
sendArray[1]=0x90;
sendArray[2]=0x04;
sendArray[3]=0x01;
sendArray[4]=0x00;
sendArray[5]=0x08;
sendArray[6]=0x03;
sendArray[7]=0x03;
sendArray[8]=0x00;
sendArray[9]=0x81;
//EB 90 04 01 00 08 03 03 00 81
Com.Write(sendArray);
//::AfxMessageBox(ss);
}