`

VC++ 常用头文件加载

 
阅读更多

//windows
#include <WinSock2.h>
#include <Windows.h>
#include <memory.h>
#include <winbase.h>
#include <shlwapi.h>

//C
#include <stdio.h>

//C++
#include <iostream>
#include <vector>
#include <sstream>
#include <list>
#include <map>
#include <string>
using namespace std;

 

#pragma  comment(lib, "ws2_32.lib")
#pragma comment(lib, "Kernel32.lib")    // IOCP需要用到的动态链接库 

 

#include <GdiPlus.h>

#pragma comment(lib, "GdiPlus.lib")

using namespace Gdiplus;

 

 

=============================================================================

因为windows.h 头文件里面包含老板的WINSOCK.h文件 所以在stdafx.h头文件中加入:
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics