📄 oserror.h
字号:
#pragma once
typedef void (*PLogProc)(const TCHAR* msg);
class COSError
{
public:
static bool m_show_out;
static FILE* m_log;
static PLogProc m_proc;
static void LogMessage(const TCHAR* msg);
static void LogMessage(const TCHAR* header, const TCHAR* msg);
static void GetOSError(TCHAR* buf, size_t buflen, const TCHAR* pname, const TCHAR* pparam=NULL, unsigned errorno=0);
static void LogOSError(const TCHAR* pname, const TCHAR* pparam=NULL, unsigned errorno=0);
static void ThrowOSError(const TCHAR* pname, const TCHAR* pparam=NULL, unsigned errorno=0);
static bool CheckError(unsigned errorno);
static void ThrowError(unsigned errorno);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -