|
|
@@ -1346,9 +1346,8 @@ int CPosPrinter::WriteBuf(const unsigned char* buf, int len)
|
|
|
{
|
|
|
if(GetLastError() == ERROR_IO_PENDING)
|
|
|
{
|
|
|
- WaitForSingleObject(hPort, 10000);
|
|
|
+ /*WaitForSingleObject(hPort, 10000);
|
|
|
|
|
|
- //计算写入了多少字节的数据
|
|
|
DWORD numread;
|
|
|
rc = GetOverlappedResult(
|
|
|
hPort,
|
|
|
@@ -1357,10 +1356,8 @@ int CPosPrinter::WriteBuf(const unsigned char* buf, int len)
|
|
|
FALSE
|
|
|
);
|
|
|
|
|
|
- //LOG_INFO("Write success " << numread << " bytes");
|
|
|
+ LOG_INFO("Write success " << numread << " bytes");*/
|
|
|
}
|
|
|
-
|
|
|
- int a = 1;
|
|
|
}
|
|
|
}
|
|
|
}
|