[go: up one dir, main page]

Menu

[r1]: / Error.h  Maximize  Restore  History

Download this file

31 lines (26 with data), 681 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Error.h: interface for the Error class.
//
//////////////////////////////////////////////////////////////////////
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
class Error
{
public:
Error(LPTSTR identifier);
virtual ~Error();
void Clear();
void Refresh(DWORD code);
LPCTSTR operator*();
void SetIdentifier(LPTSTR ident);
void DebugWriteString(LPCTSTR strng, bool IncErrMsg=true);
//void DebugWriteString(LPCSTR strng, bool IncErrMsg=true);
//void DebugWriteString(LPCWSTR strng, bool IncErrMsg=true);
private:
DWORD dwCode,
dwMsgLen;
bool CheckBuffer(DWORD needed=0);
LPTSTR lpIdent,
lpMsg;
HANDLE hOut;
};