StdAfx.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. #if !defined(AFX_STDAFX_H__D3E3BA89_EEFA_11D5_AB1C_00D0B70C3D79__INCLUDED_)
  5. #define AFX_STDAFX_H__D3E3BA89_EEFA_11D5_AB1C_00D0B70C3D79__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
  10. #include <afxwin.h> // MFC core and standard components
  11. #include <afxext.h> // MFC extensions
  12. #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
  13. #ifndef _AFX_NO_AFXCMN_SUPPORT
  14. #include <afxcmn.h> // MFC support for Windows Common Controls
  15. #endif // _AFX_NO_AFXCMN_SUPPORT
  16. #include <afxdb.h> // MFC ODBC database classes
  17. #include <afxmt.h>
  18. #include <afxsock.h> // MFC socket extensions
  19. #include "Shlwapi.h"
  20. #include <afxtempl.h>
  21. #include <shlobj.h>
  22. #include "shfolder.h"
  23. #include <afxtempl.h> // MFC 模板类
  24. #include "Global.h"
  25. //#define BASIC_VERSION //简易版,只有流程
  26. #define MSG_LENGTH 64
  27. #define TIMEDOG_VERSION//时钟狗
  28. #define SQLSERVER_VERSION //MS SQL版本
  29. //...........................
  30. //#define LKAY_VERSION //靓康爱婴
  31. #define LYFZ_VERSION //内部版本
  32. //...........................
  33. //#define CONNCOUNT_VERSION //座席版
  34. // #define CHILD_VERSION //儿童版
  35. //#define ENTERPRISE_VERSION //企业版
  36. //...........................
  37. // 儿童版有三个版本:
  38. // 1.只开启CHILD_VERSION宏,就是儿童全能版;
  39. // 2.开启CHILD_VERSION + CONNCOUNT_VERSION :儿童座席版;
  40. // 3.开启CHILD_VERSION + ENTERPRISE_VERSION:儿童企业版;
  41. // 婚纱版:
  42. // 1.全部宏关闭,就是婚纱全能版;
  43. // 2.只开启CONNCOUNT_VERSION,就是婚纱座席版;
  44. // 3.只开启ENTERPRISE_VERSION,就是婚纱企业版;
  45. #include "MD5.h"
  46. #include "filehelp.h"
  47. #include <string>
  48. #include <vector>
  49. using namespace std;
  50. // ----stat头文件;
  51. #include <sys/types.h>
  52. #include <sys/stat.h>
  53. // ----stat头文件;
  54. #include "Tblrenyuan.h"
  55. #include "Tblaccountview.h"
  56. #include "Tbldindan.h"
  57. #include "Tblreceipt_item.h"
  58. #include "TblService_tracking_record.h"
  59. #include "Tbllog.h"
  60. #include "remote_commodity.h"
  61. #include "remote_commodity_problem.h"
  62. #include "remote_service.h"
  63. #include "remote_services.h"
  64. #define FTPSTAT_DOWNLOADSUCCEEDED 2
  65. #define FTPSTAT_UPLOADSUCCEEDED 3
  66. #define FTPSTAT_DOWNLOADFAILED 4
  67. #define FTPSTAT_UPLOADFAILED 5
  68. #define WM_THREADSTART WM_USER+200
  69. #define WM_THREADCLOSE WM_USER+201
  70. #define WM_THREADMSG WM_USER+202
  71. #define WM_ADDTRACELINE WM_USER+203
  72. extern CString BrowseForFolder(HWND hWnd, LPCSTR lpszTitle, UINT nFlags);
  73. extern void DoEvents();
  74. extern void GetAppDir(CString& strAppDir);
  75. extern BOOL WaitWithMessageLoop(HANDLE hEvent, int nTimeout);
  76. PFNSHGETFOLDERPATHA GetFuncPtr_SHGetFolderPathA();
  77. extern HRESULT CreateStartMenuShortcut(LPSTR lpszShortcutFile, LPSTR lpszDescription, LPTSTR lpszRelativeFolder);
  78. extern void RemoveStartMenuShortcut(LPSTR lpszDescription, LPTSTR lpszRelativeFolder);
  79. extern CString GetShortcutTarget(LPCTSTR lpszFilename);
  80. void AutoSizeColumns(CListCtrl *pListCtrl);
  81. BOOL MakeSureDirectoryPathExists(LPCTSTR lpszDirPath);
  82. BOOL IsNumeric(char *buff);
  83. #endif