www.pudn.com > RMS2000_C.rar > Excepinf.cpp
#include "StdAfx.H"
#include "DrawCli.H"
#include "ExcepInf.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CExcepInfo::CExcepInfo()
{
memset( this, 0, sizeof( *this ) );
}
CExcepInfo::~CExcepInfo()
{
Clear();
}
void CExcepInfo::Clear()
{
if( bstrSource != NULL )
{
::SysFreeString( bstrSource );
}
if( bstrDescription != NULL )
{
::SysFreeString( bstrDescription );
}
if( bstrHelpFile != NULL )
{
::SysFreeString( bstrHelpFile );
}
memset( this, 0, sizeof( *this ) );
}