errorhandling.h
来自「AES, 即Advanced Encryption Standard高级加密标准」· C头文件 代码 · 共 42 行
H
42 行
/*
* ErrorHandling.h
*
* Copyright (C) 2007
* Paul E. Jones <paulej@arid.us>
* All Rights Reserved.
*
******************************************************************************
* $Id: ErrorHandling.h,v 1.1 2007/05/14 10:41:43 paulej Exp $
******************************************************************************
*
* This file defines various error handling and reporting functions.
*
*/
/* Global Error Reporting Function */
void ReportError( std::basic_string<TCHAR> message,
DWORD reason);
/*
* This class exists to allow us to easily bail out when
* we have system I/O issues.
*/
class SystemErrorException
{
public:
DWORD Reason;
std::basic_string<TCHAR> Message;
SystemErrorException( std::basic_string<TCHAR> message,
DWORD reason = 0)
{
Reason = reason;
Message = message;
}
SystemErrorException()
{
Reason = GetLastError();
}
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?