www.pudn.com > 200407241203328864.rar > winex.h


#if !defined WINEX_H 
#define WINEX_H 
 
#include  
 
class WinException 
{ 
public: 
    WinException (char* msg) 
    : _err (GetLastError()), _msg(msg) 
    {} 
    DWORD GetError() const { return _err; } 
    char* GetMessage () const { return _msg; } 
private: 
    DWORD _err; 
    char* _msg; 
}; 
 
#endif