1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| #pragma once
|
| class CDBConnect;
| class CADateTime;
|
| static const BYTE byteUnicode[2] = {0xFF, 0xFE};
|
| class AFX_EXT_CLASS CDBSQLiteCommFun
| {
| // Constructions
| public:
| CDBSQLiteCommFun(void);
| ~CDBSQLiteCommFun(void);
|
| // Operations
| public:
| static int RunSQL( CString strSQL, CDBConnect *pDB );
| static bool ChangePsw( CString strDBPath, CString strOldPassWord, CString strNewPassWord );
|
| // ===========Ö»»ñÈ¡¼Ç¼¼¯ÖеÄÒ»¸öÖµ===================
| static int RunSQLGetIntData( CString strSQL, CDBConnect *pDB, int nDefault = 0 );
| static long RunSQLGetLongData( CString strSQL, CDBConnect *pDB, long nDefault = 0 );
| static double RunSQLGetDoubleData( CString strSQL, CDBConnect *pDB, double fDefault = 0.0 );
| static CString RunSQLGetStrData( CString strSQL, CDBConnect *pDB, CString strDefault = _T("") );
|
| static bool IsLeadMatch( LPBYTE pBuffer, UINT nSize, const BYTE* pb, UINT nCount );
|
| protected:
|
| private:
|
| };
|
|