2014年5月19日
摘要: #include "stdafx.h"#include#include#includeusing namespace std;DWORD WINAPI thread1(LPVOID param){ char buf[256]; DWORD rlen=0; HANDLE hPipe ... 阅读全文
posted @ 2014-05-19 16:46 上海—Michael 阅读(772) 评论(0) 推荐(0) 编辑
摘要: 服务器: 1 #include "stdafx.h" 2 #include 3 #include 4 #include 5 #include 6 7 #define BUFSIZE 512 8 9 DWORD WINAPI InstanceThread(LPVOI... 阅读全文
posted @ 2014-05-19 15:34 上海—Michael 阅读(775) 评论(0) 推荐(0) 编辑
摘要: _tprintf() 是 printf() 和 wprintf() 的通用类型;如果定义了 _unicode,那么 _tprintf() 就会转换为 wprintf(),否则为 printf() 。在这 3 个函数中有两个字符串控制输出字符为 %s 和 %S 。使用它们时,有如下区别:%s当使用 p... 阅读全文
posted @ 2014-05-19 15:22 上海—Michael 阅读(11239) 评论(0) 推荐(1) 编辑