• 大小: 73.14MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2022-06-15
  • 语言: C/C++
  • 标签: 源码  

资源简介

高校教师信息管理系统,使用MFC + SQL Server 2014通过ODBC 接口实现的,希望能帮助大家!

资源截图

代码片段和文件信息

// score.h : Cscore 类的实现



// Cscore 实现

// 代码生成在 2014年12月12日 19:50

#include “stdafx.h“
#include “score.h“
IMPLEMENT_DYNAMIC(Cscore CRecordset)

Cscore::Cscore(CDatabase* pdb)
: CRecordset(pdb)
{
m_stuid = L““;
m_stuname = L““;
m_stuclass = L““;
m_usualscore = 0;
m_testscore = 0;
m_totalscore = 0;
m_nFields = 6;
m_nDefaultType = dynaset;
}
//#error 安全问题:连接字符串可能包含密码。
// 此连接字符串中可能包含明文密码和/或其他重要
// 信息。请在查看完此连接字符串并找到所有与安全
// 有关的问题后移除 #error。可能需要将此密码存
// 储为其他格式或使用其他的用户身份验证。
CString Cscore::GetDefaultConnect()
{
return _T(“DSN=Edudatabase;Description=\x9ad8\x6821\x6559\x5e08\x4fe1\x606f\x7ba1\x7406\x6570\x636e\x5e93;Trusted_Connection=Yes;APP=Microsoft\x00ae Visual Studio\x00ae 2013;WSID=NISDNCJATNWQRDZ;DATAbase=Edudatabase;LANGUAGE=\x7b80\x4f53\x4e2d\x6587;“);
}

CString Cscore::GetDefaultSQL()
{
return _T(“[dbo].[score]“);
}

void Cscore::DoFieldExchange(CFieldExchange* pFX)
{
pFX->SetFieldType(CFieldExchange::outputColumn);
// RFX_Text() 和 RFX_Int() 这类宏依赖的是
// 成员变量的类型,而不是数据库字段的类型。
// ODBC 尝试自动将列值转换为所请求的类型
RFX_Text(pFX _T(“[stuid]“) m_stuid);
RFX_Text(pFX _T(“[stuname]“) m_stuname);
RFX_Text(pFX _T(“[stuclass]“) m_stuclass);
RFX_Long(pFX _T(“[usualscore]“) m_usualscore);
RFX_Long(pFX _T(“[testscore]“) m_testscore);
RFX_Long(pFX _T(“[totalscore]“) m_totalscore);

}
/////////////////////////////////////////////////////////////////////////////
// Cscore 诊断

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

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



 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    9575936  2019-01-08 14:18  李赛2015403030116\Debug\Test.exe

     文件   18309284  2019-01-08 14:18  李赛2015403030116\Debug\Test.ilk

     文件   25504768  2019-01-08 14:18  李赛2015403030116\Debug\Test.pdb

     文件   97320960  2019-01-08 14:17  李赛2015403030116\ipch\test-bdd8cc70\test-2434c52c.ipch

     文件   97320960  2019-01-06 14:41  李赛2015403030116\ipch\test-d00e1468\test-2434c52c.ipch

     文件      75595  2019-01-08 14:17  李赛2015403030116\Test\Debug\score.obj

     文件     942005  2019-01-08 14:17  李赛2015403030116\Test\Debug\stdafx.obj

     文件       1395  2019-01-07 20:18  李赛2015403030116\Test\Debug\Test.Build.CppClean.log

     文件        470  2019-01-08 14:18  李赛2015403030116\Test\Debug\Test.log

     文件      45447  2019-01-08 14:17  李赛2015403030116\Test\Debug\Test.obj

     文件   47054848  2019-01-08 14:17  李赛2015403030116\Test\Debug\Test.pch

     文件    1433212  2019-01-08 14:17  李赛2015403030116\Test\Debug\Test.res

     文件       5778  2019-01-08 14:17  李赛2015403030116\Test\Debug\Test.tlog\cl.command.1.tlog

     文件     120918  2019-01-08 14:17  李赛2015403030116\Test\Debug\Test.tlog\CL.read.1.tlog

     文件       3866  2019-01-08 14:18  李赛2015403030116\Test\Debug\Test.tlog\CL.write.1.tlog

     文件       3526  2019-01-08 14:18  李赛2015403030116\Test\Debug\Test.tlog\link.command.1.tlog

     文件       6428  2019-01-08 14:18  李赛2015403030116\Test\Debug\Test.tlog\link.read.1.tlog

     文件       2018  2019-01-08 14:18  李赛2015403030116\Test\Debug\Test.tlog\link.write.1.tlog

     文件       1146  2019-01-08 14:17  李赛2015403030116\Test\Debug\Test.tlog\rc.command.1.tlog

     文件     186028  2019-01-08 14:17  李赛2015403030116\Test\Debug\Test.tlog\rc.read.1.tlog

     文件        494  2019-01-08 14:17  李赛2015403030116\Test\Debug\Test.tlog\rc.write.1.tlog

     文件        183  2019-01-08 14:18  李赛2015403030116\Test\Debug\Test.tlog\Test.lastbuildstate

     文件     159206  2019-01-08 14:17  李赛2015403030116\Test\Debug\TestDlg.obj

     文件    2386944  2019-01-08 14:17  李赛2015403030116\Test\Debug\vc120.idb

     文件    6721536  2019-01-08 14:17  李赛2015403030116\Test\Debug\vc120.pdb

     文件       3979  2014-12-12 19:40  李赛2015403030116\Test\ReadMe.txt

     文件      67777  2013-07-22 01:18  李赛2015403030116\Test\res\Test.ico

     文件        664  2014-12-12 19:40  李赛2015403030116\Test\res\Test.rc2

     文件       3066  2019-01-07 20:05  李赛2015403030116\Test\resource.h

     文件       1799  2019-01-06 14:44  李赛2015403030116\Test\score.cpp

............此处省略27个文件信息

评论

共有 条评论