?? loginset.cpp
字號:
// LoginSet.cpp : implementation file
//
#include "stdafx.h"
#include "xiahua.h"
#include "LoginSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLoginSet
IMPLEMENT_DYNAMIC(CLoginSet, CDaoRecordset)
CLoginSet::CLoginSet(CDaoDatabase* pdb)
: CDaoRecordset(pdb)
{
//{{AFX_FIELD_INIT(CLoginSet)
m_passward = _T("");
m_user = _T("");
m_nFields = 2;
//}}AFX_FIELD_INIT
m_nDefaultType = dbOpenDynaset;
}
CString CLoginSet::GetDefaultDBName()
{
//return _T("D:\\visual\\MSDev98\\MyProjects\\xiahua\\info1.mdb");
//char path[50];
CString m_strDatabaseName;
//::GetCurrentDirectory(50,path);
//strcat(path,"\\");
//m_strDatabaseName=_T(path);
m_strDatabaseName+="info1.mdb";
return m_strDatabaseName;
}
CString CLoginSet::GetDefaultSQL()
{
return _T("[login]");
}
void CLoginSet::DoFieldExchange(CDaoFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CLoginSet)
pFX->SetFieldType(CDaoFieldExchange::outputColumn);
DFX_Text(pFX, _T("[passward]"), m_passward);
DFX_Text(pFX, _T("[user]"), m_user);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CLoginSet diagnostics
#ifdef _DEBUG
void CLoginSet::AssertValid() const
{
CDaoRecordset::AssertValid();
}
void CLoginSet::Dump(CDumpContext& dc) const
{
CDaoRecordset::Dump(dc);
}
#endif //_DEBUG
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -