Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
studentSet.cpp
Package: 一个学生管理系统.rar [view]
Upload User: hzzhuce
Upload Date: 2013-04-01
Package Size: 1289k
Code Size: 1k
Category:
SQL Server
Development Platform:
Visual C++
- // studentSet.cpp : implementation of the CStudentSet class
- //
- #include "stdafx.h"
- #include "student.h"
- #include "studentSet.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CStudentSet implementation
- IMPLEMENT_DYNAMIC(CStudentSet, CRecordset)
- CStudentSet::CStudentSet(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CStudentSet)
- m_column1 = 0;
- m_column2 = _T("");
- m_column3 = 0;
- m_column4 = 0;
- m_column5 = 0;
- m_nFields = 5;
- //}}AFX_FIELD_INIT
- m_nDefaultType = dynaset;
- }
- CString CStudentSet::GetDefaultConnect()
- {
- return _T("ODBC;DSN=score");
- }
- CString CStudentSet::GetDefaultSQL()
- {
- return _T("[二班]");
- }
- void CStudentSet::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CStudentSet)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Long(pFX, _T("[学号]"), m_column1);
- RFX_Text(pFX, _T("[姓名]"), m_column2);
- RFX_Long(pFX, _T("[数学]"), m_column3);
- RFX_Long(pFX, _T("[语文]"), m_column4);
- RFX_Long(pFX, _T("[英语]"), m_column5);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CStudentSet diagnostics
- #ifdef _DEBUG
- void CStudentSet::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CStudentSet::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG