#define STRICT 让编译器进行严格类型检查

 #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 转摘

 

原文地址:https://www.cnblogs.com/pythonschool/p/2729282.html