//Update the real FRM-LEN field
ucSndDat[1] = udwFrmLen;
//Calculate the CRC
ucSndDat[udwFrmLen++] = CMN_GetCRC(&ucSndDat[1],udwFrmLen - 2); //When cal CRC, the FT-TAG and CRC should be discard,so CAL-CRC-LEN is frame len - 2
//Set buffer to the HexEdt's TMemoryStream
//**************************
//如果原来的内容是一行,但是此处ucSndDat的长度超过1行,那么第二行的内容不会自动刷出来。
//*****************************
hxedtDat->MemoryStream->Clear();
hxedtDat->MemoryStream->WriteBuffer(ucSndDat,udwFrmLen);
hxedtDat->Repaint();
}Author:
veket Time: 2012-9-14 22:11 Subject: 发现是显示的bug