-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDB_table.h
More file actions
40 lines (32 loc) · 812 Bytes
/
DB_table.h
File metadata and controls
40 lines (32 loc) · 812 Bytes
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
33
34
35
36
37
38
39
40
#pragma once
#ifndef __DB_TABLE_H__
#define __DB_TABLE_H__
struct TABLE
{
CString tableName;
CString tvalueName[20];
};
class DB_table : public CDialog
{
DECLARE_DYNAMIC(DB_table)
public:
const CString m_dbName;
const _bstr_t DBName;
static const int tableNum = 1;
TABLE table[tableNum];
DB_table(CWnd* pParent = NULL); // 标准构造函数
virtual ~DB_table();
CString findData(const char* s1, int re_i = 1);
void addRow(const char* s1, CString s2 = "", CString s3 = "");
// 对话框数据
//enum { IDD = IDD_DB1_FORM };
static const int TValueNums = 3; //当前表的列数
char source[31];
private:
int dataLen[tableNum]; //当前每个表中数据个数
const CString LogDir;
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
};
#endif // !__DB_TABLE_H__