usefulkey.cpp

来自「别的的密钥管理程序」· C++ 代码 · 共 68 行

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

#include "stdafx.h"
#include "bishe.h"
#include "Usefulkey.h"
#include <afxdb.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CUsefulkey

IMPLEMENT_DYNAMIC(CUsefulkey, CRecordset)

CUsefulkey::CUsefulkey(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CUsefulkey)
	m_username = _T("");
	m_dk = _T("");
	m_cer = _T("");
	m_keydate = _T("");
	m_nFields = 4;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}


CString CUsefulkey::GetDefaultConnect()
{
	return _T("ODBC;DSN=usefulkey");
}

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

void CUsefulkey::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CUsefulkey)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[username]"), m_username);
	RFX_Text(pFX, _T("[dk]"), m_dk);
	RFX_Text(pFX, _T("[cer]"), m_cer);
	RFX_Text(pFX, _T("[keydate]"), m_keydate);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CUsefulkey diagnostics

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

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

⌨️ 快捷键说明

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