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
CounterRS.cpp
Upload User: bjvcxy
Upload Date: 2021-05-06
Package Size: 2054k
Code Size: 1k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- // CounterRS.cpp : implementation file
- //
- #include "stdafx.h"
- #include "Attendance.h"
- #include "CounterRS.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCounterRS
- IMPLEMENT_DYNAMIC(CCounterRS, CRecordset)
- CCounterRS::CCounterRS(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CCounterRS)
- m_ID = _T("");
- m_COUNTER_VALUE = 0;
- m_DESCRIPTION = _T("");
- m_nFields = 3;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CCounterRS::GetDefaultConnect()
- {
- return _T("ODBC;DSN=MISDB");
- }
- CString CCounterRS::GetDefaultSQL()
- {
- return _T("[COUNTER]");
- }
- void CCounterRS::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CCounterRS)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Text(pFX, _T("[ID]"), m_ID);
- RFX_Int(pFX, _T("[COUNTER_VALUE]"), m_COUNTER_VALUE);
- RFX_Text(pFX, _T("[DESCRIPTION]"), m_DESCRIPTION);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CCounterRS diagnostics
- #ifdef _DEBUG
- void CCounterRS::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CCounterRS::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG