//--------------------------------------------------------------------
// Microsoft ADO Samples
//
// (c) 1996 Microsoft Corporation. All Rights Reserved.
//
// @doc GetRows Sample
//
// @modulegetrdlg.h
//
// @devnote None
//--------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
// CGetRowsDlg dialog
class CGetRowsDlg : public CDialog
{
// Construction
public:
CGetRowsDlg(CWnd* pParent = NULL);// standard constructor
~CGetRowsDlg();
//Performs the standard DAO GetRows
HRESULT DoGetRows();
// 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;
ADOConnection*m_piConnection;
ADORecordset*m_piEmpRecordSet;
CStringm_strSource;
CStringm_strUser;
CStringm_strPassword;
CStringm_strSQL;
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
#defineEMP_ID0L // Must use LONG or compiler gets confused with NULL
#defineEMP_LNAME1
#defineEMP_FNAME2
#define MAX_EMP_REC10 // Arbitrary maximum