随笔分类 -  C/Win32 Socket编程

摘要:在socket编程的过程中头文件中#include #include "stdafx.h"#include "WinSock2.h"在编译的时候会报错 :error C2011: 'fd_set' : 'struct' type redefinition解决方法在所有的#include 前使用#define WIN32_LEAN_AND_MEAN,如:#defineWIN32_LEAN_AND_MEAN#include这样编译就成功了。原因还不清楚。 阅读全文
posted @ 2013-09-28 12:47 zlog 阅读(340) 评论(0) 推荐(0) 编辑
摘要:Win32多线程的创建方法主要有:(1)CreateThread()(2)_beginthread()&&_beginthreadex()(3)AfxBeginThread()(4)CWinThread类(1)CreateThread()百度百科:http://baike.baidu.com/view/1191444.htm函数原型:view plaincopy to clipboardprint?01.HANDLE CreateThread(02. LPSECURITY_ATTRIBUTES lpThreadAttributes,03. DWORD dwStackSize,0 阅读全文
posted @ 2013-09-10 10:52 zlog 阅读(470) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示