📄 errorhandling.h
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -