home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / CMCD0304.ISO / Software / Freeware / Programare / nullsoft / nsis20.exe / Source / 7zip / Common / ComTry.h next >
C/C++ Source or Header  |  2003-11-23  |  260b  |  15 lines

  1. // ComTry.h
  2.  
  3. // #pragma once 
  4.  
  5. #ifndef __Com_Try_H
  6. #define __Com_Try_H
  7.  
  8. #include "Exception.h"
  9.  
  10. #define COM_TRY_BEGIN try {
  11. #define COM_TRY_END } catch(const CSystemException &e) { return e.ErrorCode; }\
  12.     catch(...) { return E_FAIL; }
  13.  
  14. #endif
  15.