home *** CD-ROM | disk | FTP | other *** search
/ Supercompiler 1997 / SUPERCOMPILER97.iso / MS_DAO.SDK / DISK4 / DAOSDK.1 / getrdlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-11  |  1.3 KB  |  57 lines

  1. // GetRDlg.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CGetRowsDlg dialog
  6.  
  7. class CGetRowsDlg : public CDialog
  8. {
  9. // Construction
  10. public:
  11.     CGetRowsDlg(CWnd* pParent = NULL);    // standard constructor
  12.  
  13.     //Performs the standard DAO GetRows
  14.     void DoGetRows();
  15.  
  16.     //Performs the C++ DAO GetRowsEx
  17.     void DoGetRowsEx();
  18.  
  19.  
  20. // Dialog Data
  21.     //{{AFX_DATA(CGetRowsDlg)
  22.     enum { IDD = IDD_MAINFORM };
  23.         // NOTE: the ClassWizard will add data members here
  24.     //}}AFX_DATA
  25.  
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL(CGetRowsDlg)
  28.     protected:
  29.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  30.     //}}AFX_VIRTUAL
  31.  
  32. // Implementation
  33. protected:
  34.     HICON m_hIcon;
  35.     CdbDBEngine        m_cDBEngine;
  36.     CdbDatabase        m_cEmpDatabase;
  37.     CdbRecordset    m_cEmpRecordSet;
  38.  
  39.     void OnExecute();
  40.     // Generated message map functions
  41.     //{{AFX_MSG(CGetRowsDlg)
  42.     virtual BOOL OnInitDialog();
  43.     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  44.     afx_msg void OnPaint();
  45.     afx_msg HCURSOR OnQueryDragIcon();
  46.     //}}AFX_MSG
  47.     DECLARE_MESSAGE_MAP()
  48. };
  49.  
  50. // Field numbers for employee table
  51. #define    EMP_ID            0L // Must use LONG or compiler gets confused with NULL
  52. #define    EMP_LNAME        1
  53. #define    EMP_FNAME        2
  54. #define MAX_EMP_REC        10 // Arbitrary maximum
  55.  
  56.  
  57.