stdafx.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. #include "filehelp.h"
  23. #include "Types.h"
  24. #ifdef USE_LIB
  25. #include "LzmaLib.h"
  26. #pragma comment(lib,"LzmaLib.lib")
  27. #endif
  28. /*
  29. #ifdef _DEBUG
  30. #pragma comment(lib, "../DEBUG/lzmalib.lib")
  31. #else
  32. #pragma comment(lib, "../RELEASE/lzmalib.lib")
  33. #endif
  34. */
  35. #ifdef _UNICODE
  36. #if defined _M_IX86
  37. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
  38. #elif defined _M_X64
  39. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  40. #else
  41. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
  42. #endif
  43. #endif
  44. extern HMODULE g_hlzma;
  45. extern BOOL LoadlzmaLibarary();
  46. extern void FreelzmaLibarary();
  47. typedef int (WINAPI *lzma_compress)(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen,
  48. unsigned char *outProps, size_t *outPropsSize,
  49. int level, /* 0 <= level <= 9, default = 5 */
  50. unsigned dictSize, /* use (1 << N) or (3 << N). 4 KB < dictSize <= 128 MB */
  51. int lc, /* 0 <= lc <= 8, default = 3 */
  52. int lp, /* 0 <= lp <= 4, default = 0 */
  53. int pb, /* 0 <= pb <= 4, default = 2 */
  54. int fb, /* 5 <= fb <= 273, default = 32 */
  55. int numThreads /* 1 or 2, default = 2 */);
  56. typedef int (WINAPI *lzma_uncompress)(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t *srcLen,
  57. const unsigned char *props, size_t propsSize);
  58. extern lzma_compress g_PtrCompress;
  59. extern lzma_uncompress g_PtrUnCompress;
  60. extern BOOL CompressFile(CString strCompressFile);