home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / VFORM.ZIP / Samples / vfDao / TckDb.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-10  |  743 b   |  26 lines

  1. #ifndef __TCK_DB_H__
  2. #define __TCK_DB_H__
  3.  
  4. // -------------------------------------------------------------------------
  5. // CTckDb Class
  6. // -------------------------------------------------------------------------
  7. class CTckDb
  8. {
  9. private:
  10.     CDaoDatabase* m_pDb;
  11. public:
  12.     CTckDb();                    // Constructor
  13.     virtual ~CTckDb();            // Destructor
  14.  
  15.     CDaoDatabase* GetDb() { return m_pDb; }                // get the DB ptr
  16.     void Shutdown();                                    // shutdown the db
  17.     BOOL EzOpen(LPCTSTR lpszPathName);
  18.     static void DisplayDaoException(CDaoException* e);
  19.  
  20.     static LPCTSTR strFieldType(short sType);
  21.     static LPCTSTR strQueryDefType(short sType);
  22.     static LPCTSTR strBOOL(BOOL bFlag);
  23.     static CString strVARIANT(const COleVariant& var);
  24. };
  25.  
  26. #endif