#include #include CHAR szText[256] = { 0 };#define PrintLog(x) WriteConsole(g_hStdout, x, strlen(x), NULL, NULL)HINSTANCE g_hInst = NULL; //窗口句柄HANDLE... ...
分类:
Windows开发 时间:
2016-06-10 08:28:59
收藏:
0 评论:
0 赞:
0 阅读:
240
做完棋盘之后却无法完成左键点击棋盘,而切换棋盘BMP图片 解决办法:目前推测可能是因为HDC的原因造成无法切换,HDC只能在WM_PAINT消息中使用,其它消息中使用都不会被执行。有了原因就想出对策,把需要HDC的函数全部放在WM_PAINT消息中去处理,这样就可以共用WM_PAINT中的HDC了代... ...
分类:
其他 时间:
2016-06-10 08:28:50
收藏:
0 评论:
0 赞:
0 阅读:
214
输入盘符或者每串字符以0分隔,最后以00结尾 CHAR * szText = "A:\0C:\0D:\00"; CHAR *pszTmp = szText; while (0!=pszTmp[0]) { //用户代码 pszTmp = strlen( pszTmp ) + 1 + pszTmp; }... ...
分类:
其他 时间:
2016-06-10 08:28:39
收藏:
0 评论:
0 赞:
0 阅读:
232
//OnPaintvoid OnPaint(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam){ PAINTSTRUCT ps = { 0 }; HDC hDC = BeginPaint(hWnd, &ps); int marc = 0; //控制... ...
分类:
其他 时间:
2016-06-10 08:28:37
收藏:
0 评论:
0 赞:
0 阅读:
323
1.ctrl +' 2.当遇到angular.each的时候ctrl + ; 3.进入之后,还是先ctrl+'; angular中: 当遇到forEach之后,又一次ctrl+;就回到你的each之后了。 jquery中: 遇到callback.call之后,又一次ctrl+;就回到你的each之后 ...
分类:
其他 时间:
2016-06-10 08:28:09
收藏:
0 评论:
0 赞:
0 阅读:
198
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=91 March 7, 2013 life of a NPTL pthread Filed under: concurrency,linux,posix — Tags: NPTL ...
分类:
其他 时间:
2016-06-10 08:28:03
收藏:
0 评论:
0 赞:
0 阅读:
226
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=21 February 16, 2013 How `delete’ works ? Filed under: c++ — Tags: c++ delete, c++ destru ...
分类:
其他 时间:
2016-06-10 08:27:51
收藏:
0 评论:
0 赞:
0 阅读:
224
nginx 这个轻量级、高性能的 web server 主要可以干两件事情: 〉直接作为http server(代替apache,对PHP需要FastCGI处理器支持); 〉另外一个功能就是作为反向代理服务器实现负载均衡 http://www.netcraft.com/ 解决 c10k connec ...
分类:
其他 时间:
2016-06-10 08:27:29
收藏:
0 评论:
0 赞:
0 阅读:
205
一、线上页面滑动流畅性测试 1、减少长动画效果(影响流畅) 2、是否自动跳转或者还是让用户自己操作跳转需要推敲 二、buttom和页面滑动的选择(优劣) 部分手机本身就会滑动不灵敏,大部分时候其实用buttom更好一些 三、微信自定义分享接口等高级功能 需要认证账号才能调用 1、图片、标题可固定 2 ...
分类:
移动平台 时间:
2016-06-10 08:27:20
收藏:
0 评论:
0 赞:
0 阅读:
288
GetMessage GetMessage函数从调用线程的消息队列中检索消息并将其放入指定的结构。这个函数可以检索信息关联到一个指定的窗口和线程信息通过PostThreadMessage功能。函数检索消息,躺在指定值范围的消息。GetMessage不检索消息属于其他线程或windows应用程序。保龄... ...
分类:
其他 时间:
2016-06-10 08:27:18
收藏:
0 评论:
0 赞:
0 阅读:
205
// 6WinRes.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "6WinRes.h"#include "Resource.h"#include #define PrintLog(x) WriteConsole(g_hStdout, x, strl... ...
分类:
Windows开发 时间:
2016-06-10 08:27:00
收藏:
0 评论:
0 赞:
0 阅读:
336
// 3Windows_menu.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "3Windows_menu.h"#include HINSTANCE g_hInst;HANDLE g_hStdout = NULL;BOOL g_bCheckCut =... ...
分类:
Windows开发 时间:
2016-06-10 08:26:30
收藏:
0 评论:
0 赞:
0 阅读:
224
//让Edit铺满整个客户区void OnSize(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam){ int nWidth = LOWORD(lParam); int nHeight = HIWORD(lParam); if (g_hEdit ... ...
分类:
其他 时间:
2016-06-10 08:26:21
收藏:
0 评论:
0 赞:
0 阅读:
203
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=97 March 11, 2013 General mistakes in parallel computing Filed under: concurrency,softwar ...
分类:
其他 时间:
2016-06-10 08:26:14
收藏:
0 评论:
0 赞:
0 阅读:
186
练习三碰到的问题 一、窗口创建出来却显示不出来 出错原因: CW_USEDEFAULT 写成了 CW_DEFAULT 造成二、定时器 OnTimer 函数触发不了 出错原因: SetTimer(hWnd, 9001, 2 * 1000, TimerProc); 这个函数用回调函数了, 改成 SetT... ...
分类:
其他 时间:
2016-06-10 08:25:51
收藏:
0 评论:
0 赞:
0 阅读:
179
多线程和定时器之间的关系 总结: 1、并行和串行说 多线程更像并行 定时器实际是串行 2、缺点 多线程因为竞抢资源,会造线程锁死 定时器会造成UI堵塞,因为并非真正的多线程 3、多线程是“同时”执行的多任务 定时器更像是本线程插入的任务1 软件定时器很多同学在工程中喜欢使用软件定时器,因为其使用简单... ...
分类:
编程语言 时间:
2016-06-10 08:25:39
收藏:
0 评论:
0 赞:
0 阅读:
162
// 4Windows_System_menu.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "4Windows_System_menu.h"#include #define PrintLog(x) WriteConsole(g_hStdout, x,... ...
分类:
Windows开发 时间:
2016-06-10 08:25:19
收藏:
0 评论:
0 赞:
0 阅读:
253
FSDateinputStream 对象 FileSystem对象中的open()方法返回的是FSDateInputStream对象,改类继承了java.io.DateInoutStream接口。支持随机访问 Seekable接口 支持在文件中找到指定位置,并提供一个查询当前位置相对于文件起始位置偏 ...
分类:
编程语言 时间:
2016-06-10 08:25:10
收藏:
0 评论:
0 赞:
0 阅读:
186
SELinux 的起源 SELinux 是一个面向政府和行业的产品,由 NSA、Network Associates、Tresys 以及其他组织设计和开发。尽管 NSA 将其作为一个补丁集引入,但从 2.6 版开始,它就被加入到 Linux 内核中。 访问控制方法 大多数操作系统使用访问控制来判断一 ...
分类:
系统服务 时间:
2016-06-10 08:24:59
收藏:
0 评论:
0 赞:
0 阅读:
234
Win32简单模板// 2Window_Timer.cpp : 定义应用程序的入口点。//#include #include #include "resource1.h"//宏定义输出函数#define PrintLog(x) WriteConsole(g_hStdout, x, strlen(x)... ...
分类:
Windows开发 时间:
2016-06-10 08:24:55
收藏:
0 评论:
0 赞:
0 阅读:
183