is this C style coding?
I don't seem to see much C++ code in this way.
is this a bad programming practice?
code seem ugly coding this way.
=============== ==
CATCHERROR(m_Cn n,0)
=============== ==
#define CATCHERROR(ptr, a) catch(_com_erro r &e)\
{\
ErrorHandler(e, m_ErrStr);\
ptr=NULL;\
return a;\
}
I don't seem to see much C++ code in this way.
is this a bad programming practice?
code seem ugly coding this way.
=============== ==
CATCHERROR(m_Cn n,0)
=============== ==
#define CATCHERROR(ptr, a) catch(_com_erro r &e)\
{\
ErrorHandler(e, m_ErrStr);\
ptr=NULL;\
return a;\
}
Comment