show_comment.cpp

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

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

#include "stdafx.h"
#include "LMTS.h"
#include "show_comment.h"

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

/////////////////////////////////////////////////////////////////////////////
// show_comment

IMPLEMENT_DYNAMIC(show_comment, CRecordset)

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


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

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

void show_comment::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(show_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
}

/////////////////////////////////////////////////////////////////////////////
// show_comment diagnostics

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

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

⌨️ 快捷键说明

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