// PromptExceptionMessage.h: interface for the CPromptExceptionMessage class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PROMPTEXCEPTIONMESSAGE_H__4D364042_B92D_44C5_8D8A_95E479993E7B__INCLUDED_)
#define AFX_PROMPTEXCEPTIONMESSAGE_H__4D364042_B92D_44C5_8D8A_95E479993E7B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifdef  BUILD_UTILITYDLL
#define     UTILITYDLL  __declspec(dllexport)
#else
#define     UTILITYDLL  __declspec(dllimport)
#endif

/////////////////////////////////////////////////////////////////////////////
// CPromptExceptionMessage

class UTILITYDLL CPromptExceptionMessage
{
private:
    static CString m_csLastMessage;
//  default constructor
    CPromptExceptionMessage();

//  default destructor
    virtual ~CPromptExceptionMessage();

public:
//  prompt Dao exception specific the file, table and field
    static void promptDaoException(CDaoException* DaoException, CString csDbFileName = "",
                                   CString csTableName = "", CString csField = "",
                                   CString csFieldname = "");

//  prompt Memory exception specific the file
    static void promptMemoryException(CMemoryException* MemoryException, CString csDbFileName = "");

    static CString GetLastMessage();
    static void    ResetLastMessage();
};

#endif // !defined(AFX_PROMPTEXCEPTIONMESSAGE_H__4D364042_B92D_44C5_8D8A_95E479993E7B__INCLUDED_)
