Пример #1
0
void COutBuffer::FlushWithCheck()
{
  HRESULT result = Flush();
  #ifdef _NO_EXCEPTIONS
  ErrorCode = result;
  #else
  if (result != S_OK)
    throw COutBufferException(result);
  #endif
}
Пример #2
0
void COutBuffer::WriteBlock()
{
    HRESULT result = Flush();
    if (result != S_OK)
        throw COutBufferException(result);
}