StdAfx.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently, but
  3. // are changed infrequently
  4. //
  5. #if !defined(AFX_STDAFX_H__DF42E6F3_C1C0_4611_96B8_420C3D3B8167__INCLUDED_)
  6. #define AFX_STDAFX_H__DF42E6F3_C1C0_4611_96B8_420C3D3B8167__INCLUDED_
  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000
  10. #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
  11. #include <afx.h>
  12. #include <afxwin.h> // MFC core and standard components
  13. #include <afxext.h> // MFC extensions
  14. #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
  15. #ifndef _AFX_NO_AFXCMN_SUPPORT
  16. #include <afxcmn.h> // MFC support for Windows Common Controls
  17. #endif // _AFX_NO_AFXCMN_SUPPORT
  18. #include <iostream>
  19. #include <string>
  20. #include <vector>
  21. using namespace std;
  22. #ifndef _AFX_NO_DB_SUPPORT
  23. #include <afxdb.h> // MFC ODBC database classes
  24. #endif // _AFX_NO_DB_SUPPORT
  25. #include "TblClient.h"
  26. extern CDatabase *g_pDBPtr;
  27. extern char g_szDBSource[MAX_PATH]; // 数据库源(服务所在IP或计算机名);
  28. extern char g_szDBServerPort[MAX_PATH]; // 数据库源端口;
  29. extern char g_szDBAccount[MAX_PATH]; // 数据库登录用户;
  30. extern char g_szDBPassWord[MAX_PATH]; // 数据库登录密码;
  31. extern char g_szDBName[MAX_PATH]; // 数据库名称;
  32. extern string g_sqlVerion;
  33. extern string g_sqlNetshare;
  34. typedef struct _zcclient
  35. {
  36. CString id;
  37. CString name1;
  38. CString name2;
  39. CString name3;
  40. CString birthday1;
  41. CString birthday2;
  42. CString birthday3;
  43. CString phone1;
  44. CString phone2;
  45. CString qq1;
  46. CString qq2;
  47. CString addr1;
  48. CString addr2;
  49. CString area;
  50. CString area2;
  51. CString time3;
  52. CString check1;
  53. CString check2;
  54. CString check3;
  55. CString check4;
  56. CString sex;
  57. CString zodiac;
  58. }zcdata, *pzcdata;
  59. extern int GetIniInfo(const char *szPath = NULL, const char *szIniName = NULL);
  60. extern bool IsTableExists(string tabname);
  61. extern bool OpenDatabase(string server, string port, string dbuser, string dbpassword, string dbname);
  62. extern int getzcdata(vector<zcdata> &zc);
  63. extern bool zc2lyfz(zcdata &data, bool child = false);
  64. // TODO: reference additional headers your program requires here
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_STDAFX_H__DF42E6F3_C1C0_4611_96B8_420C3D3B8167__INCLUDED_)