`

WIN32_LEAN_AND_MEAN 作用

    博客分类:
  • VC
阅读更多

MSDN的资料:   
    
  为加速生成过程,Visual   C++   提供了如下定义(这些定义通过排除一些不太常用的   API,减小了   Win32   头文件的大小):   
    
  VC_EXTRALEAN   
    
  WIN32_LEAN_AND_MEAN   
    
  VC_EXTRALEAN   定义   WIN32_LEAN_AND_MEAN   和若干   NOservice   定义,如   NOCOMM   和   NOSOUND。(有关   NOservice   定义列表,请参见头文件   Windows.h   和   MFC   头文件   afxv_w32.h。)   
    
  用   Visual   C++   应用程序向导创建的应用程序自动使用   VC_EXTRALEAN。可以在旧式   MFC   应用程序中手动定义   VC_EXTRALEAN   以加速生成过程。   
    
  非   MFC   应用程序可以定义   WIN32_LEAN_AND_MEAN   和适用的   NOservice   定义以减少生成时间。 

分享到:
评论

相关推荐

    Win32LeanAndMean:C ++ 14 没有宏

    该项目从MinGW w32api生成C ++ 14标头“ Win32LeanAndMean.hpp”,包括定义了WIN32_LEAN_AND_MEAN的Win32 API声明: typedef,例如HWND 结构,例如WNDCLASSEX 功能,例如MessageBoxW 将常量宏转换为小写形式的...

    ping的源代码

    终于找到了: 部分内容 <br/>ping的源代码 <br/>#pragma pack(4) #define WIN32_LEAN_AND_MEAN #include #include #include #define ICMP_ECHO 8 #define ICMP_ECHOREPLY 0 ...

    Windows Sockets 2 编程手册 11/26/2021 Page 1798

    Windows Sockets 2 编程手册 有1798页,非常详细. 是英文文档. 含有如下h文件的所有API接口...#define WIN32_LEAN_AND_MEAN #include #include #include // Link with ws2_32.lib #pragma comment(lib, "Ws2_32.lib")

    tjs:TJS = tinyc编译器+ quickjs

    TJS = tinyc编译器+ quickjs 混合两个世界的力量,使您可以在js中(内联)调用c函数。 玩具项目,不保证安全,使用风险自负。例子// yes, it support es-... raw `#define UNICODE#define WIN32_LEAN_AND_MEAN#includ

    c++ 端口扫描程序实现案例

    第一、原理 端口扫描的原理很简单,就是建立socket通信,切换不通端口,...#define WIN32_LEAN_AND_MEAN #include stdafx.h #include #pragma comment(lib, Ws2_32) int scant(char *Ip, int StartPort, int EndPort)

    转载:已编译好的openssh库

    "CFLAG= /MD /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE - D_CRT_NONSTDC_NO_DEPRECATE /Fdout32 -DOPENSSL_...

    C++实现显示MP3文件信息的方法

    本文实例讲述了C++实现显示MP3文件信息的方法。分享给大家供大家参考。具体实现方法如下: /** * This is small example how to ...#define WIN32_LEAN_AND_MEAN #include #include #include #include <stdio.h

    C语言使用libZPlay录制声音并写到文件的方法

    本文实例讲述了C语言使用libZPlay录制声音并写到文件的方法。分享给大家供大家参考。...#define WIN32_LEAN_AND_MEAN #include #include #include #include #include #include #include #include <dos>

    C++编写简单的打靶游戏

    首次自己写程序,很不完善,还有许多问题需要...#define WIN32_LEAN_AND_MEAN #include #include #include #include #include #include #include #include #include <math.h> #include #include resourc

    收发数据包源代码

    #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include #include #include #pragma comment(lib, "ws2_32") // Set the packing to a 1 byte boundary #include // // Define the IPv4...

    发现网络中的活动主机

    #define WIN32_LEAN_AND_MEAN #include #include #include #include #include #include #include typedef struct iphdr { unsigned int headlen:4; unsigned int version:4; unsigned char tos; ...

    可以仿造ip

    #define WIN32_LEAN_AND_MEAN #include #include #include #include #include #define OICQ_MAX_PACKET 1024 #define OICQ_MAX_MSG 512 #define OICQ_MSG_LEN 45 #...

    Senfore_DragDrop_v4.1

    NO_WIN32_LEAN_AND_MEAN The define *must* be made in the project options. It is not sufficient to #define it in the source. If you manage to compile with C++ Builder (any version), I would very ...

Global site tag (gtag.js) - Google Analytics