#define SAFE_DELETE(pData) { try { delete pData; } catch (...) { } pData=NULL; }
#define SAFE_DELETE_ARRAY(pData) { try { delete [] pData; } catch (...) { } pData=NULL; }
#ifndef OUTPUT_DEBUGSTR
#define OUTPUT_DEBUGSTR(str_format,p1,p2,p3,p4) \
{\
TCHAR _str[250]={0};\
_stprintf_s((TCHAR*)_str,250-1,str_format,p1,p2,p3,p4);\
OutputDebugString(_str);\
}
#endif
#ifndef OUTPUT_MSGBOX
#define OUTPUT_MSGBOX(str_format,p1,p2,p3,p4) \
{\
TCHAR _str[250]={0};\
_stprintf_s((TCHAR*)_str,250-1,str_format,p1,p2,p3,p4);\
MessageBox(0, _str, _T("DebugMessage"), MB_OK);\
}
#endif