CString Format问题一问
Result = ReadFile \
(ReadHandle, \
InputReport, \
Capabilities.InputReportByteLength, \
&BytesRead, \
NULL);
ActualBytesRead = BytesRead;
if (Result == 0)
{
//The ReadFile failed, so close the handle, display a message,
//and set DeviceDetected to FALSE so the next attempt will look for the device.
CloseHandle(ReadHandle);
DisplayData("Can't read from device");
DeviceDetected = FALSE;
}else{
DisplayData("ReadFile 成功!");
ULONG aa;
for(aa=0;aa<Capabilities.InputReportByteLength;aa++){
char x=InputReport[aa] ;
CString ms;
ms.Format("%08X",x);//如果我要输出二进制数据如何写?
DisplayData( ms );
}