home *** CD-ROM | disk | FTP | other *** search
- // GetRDlg.h : header file
- //
-
- /////////////////////////////////////////////////////////////////////////////
- // CGetRowsDlg dialog
-
- class CGetRowsDlg : public CDialog
- {
- // Construction
- public:
- CGetRowsDlg(CWnd* pParent = NULL); // standard constructor
-
- //Performs the standard DAO GetRows
- void DoGetRows();
-
- //Performs the C++ DAO GetRowsEx
- void DoGetRowsEx();
-
-
- // Dialog Data
- //{{AFX_DATA(CGetRowsDlg)
- enum { IDD = IDD_MAINFORM };
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
-
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CGetRowsDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
-
- // Implementation
- protected:
- HICON m_hIcon;
- CdbDBEngine m_cDBEngine;
- CdbDatabase m_cEmpDatabase;
- CdbRecordset m_cEmpRecordSet;
-
- void OnExecute();
- // Generated message map functions
- //{{AFX_MSG(CGetRowsDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- // Field numbers for employee table
- #define EMP_ID 0L // Must use LONG or compiler gets confused with NULL
- #define EMP_LNAME 1
- #define EMP_FNAME 2
- #define MAX_EMP_REC 10 // Arbitrary maximum
-
-
-