My Project
comdef.h
1 typedef long HRESULT;
2 
3 enum {E_FAIL = 0, E_INVALIDARG, E_OUTOFMEMORY, S_OK};
4 
5 class _com_error {
6 
7 protected:
8 
9  HRESULT m_hr;
10 
11 public:
12 
13  _com_error (HRESULT hr) {m_hr = hr;};
14 
15  HRESULT Error () { return m_hr; };
16 };
Definition: comdef.h:5