1baa3858d3f5d128a5c8466b700098109edcad5f2repo sync// ComTry.h 2baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 3baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifndef __COM_TRY_H 4baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define __COM_TRY_H 5baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 6baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#include "MyWindows.h" 7baa3858d3f5d128a5c8466b700098109edcad5f2repo sync// #include "Exception.h" 8baa3858d3f5d128a5c8466b700098109edcad5f2repo sync// #include "NewHandler.h" 9baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 10baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define COM_TRY_BEGIN try { 11baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define COM_TRY_END } catch(...) { return E_OUTOFMEMORY; } 12baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 13baa3858d3f5d128a5c8466b700098109edcad5f2repo sync // catch(const CNewException &) { return E_OUTOFMEMORY; } 14baa3858d3f5d128a5c8466b700098109edcad5f2repo sync // catch(const CSystemException &e) { return e.ErrorCode; } 15baa3858d3f5d128a5c8466b700098109edcad5f2repo sync // catch(...) { return E_FAIL; } 16baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 17baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 18