// Error.h: interface for the Error class. // ////////////////////////////////////////////////////////////////////// #pragma once #define WIN32_LEAN_AND_MEAN #include 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; };