?? callerinfotable.cpp
字號:
// CallerInfoTable.cpp : implementation file
//
#include "stdafx.h"
#include "query.h"
#include "CallerInfoTable.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCallerInfoTable
IMPLEMENT_DYNAMIC(CCallerInfoTable, CRecordset)
CCallerInfoTable::CCallerInfoTable(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CCallerInfoTable)
m_phonenumber = _T("");
m_password = _T("");
m_nFields = 2;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CCallerInfoTable::GetDefaultConnect()
{
return _T("ODBC;DSN=tds");
}
CString CCallerInfoTable::GetDefaultSQL()
{
return _T("[dbo].[query]");
}
void CCallerInfoTable::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CCallerInfoTable)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[phonenumber]"), m_phonenumber);
RFX_Text(pFX, _T("[password]"), m_password);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CCallerInfoTable diagnostics
#ifdef _DEBUG
void CCallerInfoTable::AssertValid() const
{
CRecordset::AssertValid();
}
void CCallerInfoTable::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -