宏WIN32_LEAN_AND_MEAN
2015-11-24 14:45
357 查看
作用
定义于windows.h文件中,定义如下
定义这个宏,将不加载一些少用的头文件
最大作用是不加载winsock.h
因为winsock.h和winsock2.h冲突
起源
windows从16位向32位过渡时引入
定义这个宏,程序员可以像在16位系统那样编程:仅加载编写基础框架需要的头文件
定义于windows.h文件中,定义如下
#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 #ifndef NOGDI #ifndef _MAC #include <winspool.h> #ifdef INC_OLE1 #include <ole.h> #else #include <ole2.h> #endif /* !INC_OLE1 */ #endif /* !MAC */ #include <commdlg.h> #endif /* !NOGDI */ #endif /* WIN32_LEAN_AND_MEAN */
定义这个宏,将不加载一些少用的头文件
最大作用是不加载winsock.h
因为winsock.h和winsock2.h冲突
起源
windows从16位向32位过渡时引入
定义这个宏,程序员可以像在16位系统那样编程:仅加载编写基础框架需要的头文件
相关文章推荐
- removeAllViews()没作用
- 《swift2.0 官方教程中文版》 第2章-06函数
- 协议森林10 魔鬼细节 (TCP滑窗管理)
- android删除文件出错
- MyBatis自定义类型转换
- 确保实现Runnable接口的实例在自己的线程中的运行的方法
- 英语老师不想让你知道的一些网站 , 想学英语的就进
- 算法题--抽签问题的思考与解决
- 压缩跟踪Compressive Tracking源码理解
- 手游渲染之性能分析2
- CSS基础知识真难啊-position-relative-absolute
- tigase链接mongodb
- Git操作解释(持续更新)
- PHPCMS V9 全站调用会员信息代码
- 自动生成Android不同分辨率下的图片
- 《swift2.0 官方教程中文版》 第2章-05控制流
- 前端程序员应该知道的 15 个 jQuery 小技巧
- C++primer plus第六版课后编程题练习答案2.1
- 正则表达式学习心得
- iOS开发--毛玻璃效果(UIImage+Blur)直接拿去