#define    STRICT   
   的意思是让编译器进行严格类型检查   
   #define    WIN32_LEAN_AND_MEAN   
   的意思是让编译器去除不经常用的头文件(一般包含windows.h要包含一堆用不到的头文件)   
   _T("...")是为了兼容宽字符和UNICODE

 

###通过查看 头文件得知 WIN32_LEAN_AND_MEAN和STRICT 的作用是决定在编译的时候是否加载多余的头文件 是一种优化宏

#ifndef WIN32_LEAN_AND_MEAN
#include <cderr.h>
#include <dde.h>
#include <ddeml.h>
#include <dlgs.h>
#ifndef _MAC
#include <lzexpand.h>
#include <mmsystem.h>
#include <nb30.h>
#include <rpc.h>
#endif
#include <shellapi.h>
#ifndef _MAC
#include <winperf.h>
#include <winsock.h>
#endif
#ifndef NOCRYPT
#include <wincrypt.h>
#include <winefs.h>
#include <winscard.h>
#endif

http://www.pythonschool.com/python/8.html 转摘

 

相关文章:

  • 2022-01-13
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2021-07-24
猜你喜欢
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-02-11
  • 2021-07-04
相关资源
相似解决方案