12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- // stdafx.h : include file for standard system include files,
- // or project specific include files that are used frequently, but
- // are changed infrequently
- //
- #if !defined(AFX_STDAFX_H__DF42E6F3_C1C0_4611_96B8_420C3D3B8167__INCLUDED_)
- #define AFX_STDAFX_H__DF42E6F3_C1C0_4611_96B8_420C3D3B8167__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
- #include <afx.h>
- #include <afxwin.h> // MFC core and standard components
- #include <afxext.h> // MFC extensions
- #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
- #ifndef _AFX_NO_AFXCMN_SUPPORT
- #include <afxcmn.h> // MFC support for Windows Common Controls
- #endif // _AFX_NO_AFXCMN_SUPPORT
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- #ifndef _AFX_NO_DB_SUPPORT
- #include <afxdb.h> // MFC ODBC database classes
- #endif // _AFX_NO_DB_SUPPORT
- #include "TblClient.h"
- extern CDatabase *g_pDBPtr;
- extern char g_szDBSource[MAX_PATH]; // 数据库源(服务所在IP或计算机名);
- extern char g_szDBServerPort[MAX_PATH]; // 数据库源端口;
- extern char g_szDBAccount[MAX_PATH]; // 数据库登录用户;
- extern char g_szDBPassWord[MAX_PATH]; // 数据库登录密码;
- extern char g_szDBName[MAX_PATH]; // 数据库名称;
- extern string g_sqlVerion;
- extern string g_sqlNetshare;
- typedef struct _zcclient
- {
- CString id;
- CString name1;
- CString name2;
- CString name3;
- CString birthday1;
- CString birthday2;
- CString birthday3;
- CString phone1;
- CString phone2;
- CString qq1;
- CString qq2;
- CString addr1;
- CString addr2;
- CString area;
- CString area2;
- CString time3;
- CString check1;
- CString check2;
- CString check3;
- CString check4;
- CString sex;
- CString zodiac;
- }zcdata, *pzcdata;
- extern int GetIniInfo(const char *szPath = NULL, const char *szIniName = NULL);
- extern bool IsTableExists(string tabname);
- extern bool OpenDatabase(string server, string port, string dbuser, string dbpassword, string dbname);
- extern int getzcdata(vector<zcdata> &zc);
- extern bool zc2lyfz(zcdata &data, bool child = false);
- // TODO: reference additional headers your program requires here
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_STDAFX_H__DF42E6F3_C1C0_4611_96B8_420C3D3B8167__INCLUDED_)
|