comment.cpp

来自「LTMS软件说明 软件名称:LTMS(Luinse Teaching Manag」· C++ 代码 · 共 68 行

CPP
68
字号
// comment.cpp : implementation file
//

#include "stdafx.h"
#include "LMTS.h"
#include "comment.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// comment

IMPLEMENT_DYNAMIC(comment, CRecordset)

comment::comment(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(comment)
	m_column1 = 0;
	m_send = _T("");
	m_content = _T("");
	m_receive = _T("");
	m_nFields = 4;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}


CString comment::GetDefaultConnect()
{
	return _T("ODBC;DSN=LMTS");
}

CString comment::GetDefaultSQL()
{
	return _T("[comment]");
}

void comment::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(comment)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Long(pFX, _T("[编号]"), m_column1);
	RFX_Text(pFX, _T("[send]"), m_send);
	RFX_Text(pFX, _T("[content]"), m_content);
	RFX_Text(pFX, _T("[receive]"), m_receive);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// comment diagnostics

#ifdef _DEBUG
void comment::AssertValid() const
{
	CRecordset::AssertValid();
}

void comment::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?