码迷,mamicode.com
首页 > 全部
2算法:客户区坐标转换成屏幕坐标
//显示菜单POINT point = { 0 }; //转换时需要POINT数据结构point.x = LOWORD(lParam); //客户区坐标point.y = HIWORD(lParam);//转换成屏幕坐标ClientToScreen(hWnd, &point);//point.x//... ...
分类:编程语言   时间:2016-06-10 08:31:45    阅读次数:198
shell在一个大文件找出想要的一段字符串操作技巧
昨天端午,晚上的时候接了一个电话,我朋友的公司,数据库被两个工作没多久的phper给弄坏了,具体就是把一个字段值,给全表弄成一个了名字了,当然这个是可以配置了禁止全表更新数据库,这下可急坏了,找到我,叫我给看一下,他们每天3:00是有备份的,按天备份,还好不是增量的,当然binlog日志也是开启的, ...
分类:系统相关   时间:2016-06-10 08:31:32    阅读次数:306
10windows_font_text
#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:32:57    阅读次数:286
读取文件到字符串pszBuff
/*读取文件到字符串pszBuff */ //打开文件,读取数据 FILE *pFile = NULL; fopen_s(&pFile, "c:\\1.txt", "r"); fseek(pFile, 0, SEEK_END);//把fseek移动到文件结尾 long nFileLen = ftel... ...
分类:其他好文   时间:2016-06-10 08:32:57    阅读次数:399
1windows_Mouse
// WIN_PAINT_MESSAGE.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "windows_Mouse.h"#include HINSTANCE g_hInst = NULL;HANDLE g_hStdout = NULL;CHAR sz... ...
分类:Windows程序   时间:2016-06-10 08:31:09    阅读次数:234
2windows_timer
// 2Window_Timer.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "2Window_Timer.h"#include HINSTANCE g_hInst;HANDLE g_hStdout = NULL;//宏定义输入函数#define P... ...
分类:Windows程序   时间:2016-06-10 08:32:04    阅读次数:306
How exception works ?
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=28 February 18, 2013 How exception works ? Filed under: c++ — Tags: C++ constructor., C++ ...
分类:其他好文   时间:2016-06-10 08:30:29    阅读次数:175
How `new’ operator works ?
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=15 February 15, 2013 How `new’ operator works ? Filed under: c++ — Tags: C++ internal, c+ ...
分类:其他好文   时间:2016-06-10 08:31:09    阅读次数:184
casting in C++
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=39 February 20, 2013 casting in C++ Filed under: c++ — Tags: C++ internal, dynamic_cast, ...
分类:编程语言   时间:2016-06-10 08:30:53    阅读次数:262
function calling convention
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=31 February 19, 2013 function calling convention Filed under: c++ — Tags: C convention, C ...
分类:其他好文   时间:2016-06-10 08:31:50    阅读次数:205
9WinMap 映射
#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:31:20    阅读次数:240
做完棋盘之后却无法完成左键点击棋盘,而切换棋盘BMP图片
做完棋盘之后却无法完成左键点击棋盘,而切换棋盘BMP图片 解决办法:目前推测可能是因为HDC的原因造成无法切换,HDC只能在WM_PAINT消息中使用,其它消息中使用都不会被执行。有了原因就想出对策,把需要HDC的函数全部放在WM_PAINT消息中去处理,这样就可以共用WM_PAINT中的HDC了代... ...
分类:其他好文   时间:2016-06-10 08:31:50    阅读次数:174
输入盘符或者每串字符以0分隔,最后以00结尾
输入盘符或者每串字符以0分隔,最后以00结尾 CHAR * szText = "A:\0C:\0D:\00"; CHAR *pszTmp = szText; while (0!=pszTmp[0]) { //用户代码 pszTmp = strlen( pszTmp ) + 1 + pszTmp; }... ...
分类:其他好文   时间:2016-06-10 08:30:16    阅读次数:238
画九格棋盘
//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:30:26    阅读次数:199
快捷方式控制台调试each这种方法的时候怎么停
1.ctrl +' 2.当遇到angular.each的时候ctrl + ; 3.进入之后,还是先ctrl+'; angular中: 当遇到forEach之后,又一次ctrl+;就回到你的each之后了。 jquery中: 遇到callback.call之后,又一次ctrl+;就回到你的each之后 ...
分类:其他好文   时间:2016-06-10 08:28:58    阅读次数:186
life of a NPTL pthread
这是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:16    阅读次数:201
How `delete’ works ?
这是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:30:04    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!