蔡諝的窝

博客园 首页 新随笔 联系 订阅 管理

2011年1月8日 #

摘要: 直接给出步骤:===========函数的DLL封装===========1.创建第一个项目:win32控制台程序,应用程序类型:DLL,附加选项:导出符号(命名:double_dll)2.double_dll.h中加入函数定义 extern DOUBLE_DLL_API int doublefun(int);//DOUBLE_DLL_API 根据项目名称不同而不同3.double_dll.cpp加入函数实现 extern DOUBLE_DLL_API int doublefun(int x)//DOUBLE_DLL_API 根据项目名称不同而不同 {  return 2*x; }4.编译(产 阅读全文
posted @ 2011-01-08 22:21 蔡諝 阅读(1731) 评论(0) 推荐(0)

摘要: ----------------------------------------------------------------------------************************Tcp_client.cpp************************----------------------------------------------------------------------------#include stdio.h#include "WinSock2.h"#pragma comment(lib,"ws2_32.lib")SOCKET tcp_soc 阅读全文
posted @ 2011-01-08 21:11 蔡諝 阅读(6204) 评论(0) 推荐(0)