?? noteset.cpp
字號(hào):
// NoteSet.cpp : implementation file
//
#include "stdafx.h"
#include "Papaz.h"
#include "NoteSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CNoteSet
IMPLEMENT_DYNAMIC(CNoteSet, CRecordset)
CNoteSet::CNoteSet(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CNoteSet)
m_ID = 0;
m_Caption = _T("");
m_Note = _T("");
m_nFields = 4;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CNoteSet::GetDefaultConnect()
{
return _T("ODBC;DSN=CNN");
}
CString CNoteSet::GetDefaultSQL()
{
return _T("[記事簿]");
}
void CNoteSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CNoteSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Long(pFX, _T("[ID]"), m_ID);
RFX_Date(pFX, _T("[Date]"), m_Date);
RFX_Text(pFX, _T("[Caption]"), m_Caption);
RFX_Text(pFX, _T("[Note]"), m_Note);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CNoteSet diagnostics
#ifdef _DEBUG
void CNoteSet::AssertValid() const
{
CRecordset::AssertValid();
}
void CNoteSet::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -