|
|
@@ -306,7 +306,7 @@ int CPosPrinter::GetDevicePath(LPGUID lpGuid, LPTSTR* pszDevicePath)
|
|
|
// 调整计数值
|
|
|
nCount++;
|
|
|
|
|
|
- //LOG_INFO("Cnt = " << nCount << ",pDetail->DevicePath =" << pDetail->DevicePath);
|
|
|
+ LOG_INFO("Cnt = " << nCount << ",pDetail->DevicePath =" << pDetail->DevicePath);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1028,9 +1028,9 @@ int CPosPrinter::WriteBuf(const char* buf, int len)
|
|
|
{
|
|
|
if(GetLastError() == ERROR_IO_PENDING)
|
|
|
{
|
|
|
- LOG_INFO("Request queued, waiting... handle:" << hPort);
|
|
|
+ //LOG_INFO("Request queued, waiting... handle:" << hPort);
|
|
|
WaitForSingleObject(hPort, 5000);
|
|
|
- LOG_INFO("Request completed, handle:" << hPort);
|
|
|
+ //LOG_INFO("Request completed, handle:" << hPort);
|
|
|
DWORD numread;
|
|
|
rc = GetOverlappedResult(
|
|
|
hPort,
|