home *** CD-ROM | disk | FTP | other *** search
- // BrowserDoc.h : interface of the CBrowserDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
-
- class CBrowserDoc : public CDocument
- {
- protected: // create from serialization only
-
- //Exercise 1 added database object
- CDaoDatabase m_daoDB; //Connection to the database
-
- CBrowserDoc();
- DECLARE_DYNCREATE(CBrowserDoc)
-
- // Attributes
- public:
-
- //Exercise 1 function to return pointer to CDaoDatabase object
- CDaoDatabase * GetDatabase( );
-
- // Operations
- public:
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CBrowserDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- virtual void OnCloseDocument();
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- virtual ~CBrowserDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CBrowserDoc)
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- /////////////////////////////////////////////////////////////////////////////
-