stdafx.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // stdafx.h : 标准系统包含文件的包含文件,
  2. // 或是经常使用但不常更改的
  3. // 特定于项目的包含文件
  4. #pragma once
  5. #ifndef VC_EXTRALEAN
  6. #define VC_EXTRALEAN // 从 Windows 头中排除极少使用的资料
  7. #endif
  8. #include "targetver.h"
  9. #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将是显式的
  10. // 关闭 MFC 对某些常见但经常可放心忽略的警告消息的隐藏
  11. #define _AFX_ALL_WARNINGS
  12. #include <afxwin.h> // MFC 核心组件和标准组件
  13. #include <afxext.h> // MFC 扩展
  14. #include <afxdisp.h> // MFC 自动化类
  15. #ifndef _AFX_NO_OLE_SUPPORT
  16. #include <afxdtctl.h> // MFC 对 Internet Explorer 4 公共控件的支持
  17. #endif
  18. #ifndef _AFX_NO_AFXCMN_SUPPORT
  19. #include <afxcmn.h> // MFC 对 Windows 公共控件的支持
  20. #endif // _AFX_NO_AFXCMN_SUPPORT
  21. #include <afxcontrolbars.h> // 功能区和控件条的 MFC 支持
  22. #ifdef _UNICODE
  23. #if defined _M_IX86
  24. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
  25. #elif defined _M_X64
  26. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  27. #else
  28. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
  29. #endif
  30. #endif
  31. #include "AdoImpl.h"
  32. //////////////////////////////////////////////////////////////////////////
  33. // 全局变量;
  34. extern TCHAR g_szIniFile[MAX_PATH];
  35. extern TCHAR g_szModulePath[MAX_PATH];
  36. extern TCHAR g_szModuleFileName[MAX_PATH];
  37. extern TCHAR g_szDBSource[MAX_PATH];
  38. extern TCHAR g_szDBAccount[MAX_PATH];
  39. extern TCHAR g_szDBPassWord[MAX_PATH];
  40. extern TCHAR g_szDBName[MAX_PATH];
  41. extern TCHAR g_szConnectString[MAX_PATH];
  42. extern DWORD g_dwDBServerPort;
  43. //////////////////////////////////////////////////////////////////////////
  44. // 函数;
  45. extern int GetSysIniInfo(const TCHAR *szPath = nullptr, const TCHAR *szIniName = nullptr);
  46. extern void WriteTextLog(const TCHAR *format, ...);