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
dbmgr.h
Package: LegendOfMir2_Server020418.zip [view]
Upload User: szopptop
Upload Date: 2013-04-23
Package Size: 1047k
Code Size: 1k
Category:
Game Server Simulator
Development Platform:
Visual C++
- /*
- Date:
- 2002/03/06 (Last Updated: 2002/03/08)
- */
- #pragma once
- #include "_orzEx/database.h"
- #include "_orzEx/syncobj.h"
- #include "_orzEx/list.h"
- class CDBManager : public CIntLock
- {
- public:
- CDatabase m_dbMain;
- CConnection *m_pConn;
- void (*m_pfnLog)( LPTSTR pMsg );
- public:
- CDBManager();
- ~CDBManager();
- bool Init( void (*pfnLog)( LPTSTR pMsg ), char *pDSN, char *pID, char *pPassword );
- CRecordset * CreateRecordset();
- void DestroyRecordset( CRecordset *pRec );
- protected:
- static void __cbDBMsg( char *pState, int nNativeCode, char *pDesc );
- };
- CDBManager * GetDBManager();
- // 孽府巩捞 呈公 汗棱且 锭 荤侩茄促.
- // 林狼: 弥措 滚欺农扁=4096
- class CQueryManager
- {
- protected:
- struct ITEM
- {
- char szName[256];
- char szValue[256];
- bool bString;
- };
- char m_szQuery[4096];
- char m_szTable[256];
- char m_szCondition[1024];
- CList< ITEM > m_listItem;
- public:
- CQueryManager();
- virtual ~CQueryManager();
- void StartUpdateQuery( char *pTable, char *pCondition );
- char *GetUpdateQuery();
- void StartInsertQuery( char *pTable );
- char *GetInsertQuery();
- void InsertItem( char *pName, char *pValue, int nValueLen, bool bString = true );
- void InsertItem( char *pName, char *pValue, bool bString = true );
- void InsertItem( char *pName, TCHAR *pValue, bool bString = true );
- void InsertItem( char *pName, int nValue, bool bString = false );
- void InsertItem( char *pName, BYTE pValue );
- };