上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 35 下一页
http://blog.sina.com.cn/s/blog_7632c6010100u1et.htmlhttp://www.codeproject.com/Tips/197097/Converting-ANSI-to-Unicode-and-backhttp://www.codeproject.c... Read More
posted @ 2014-10-10 16:46 godjob Views(223) Comments(0) Diggs(0)
Point-In-Polygon Algorithm — Determining Whether A Point Is Inside A Complex Polygon© 1998,2006,2007 Darel Rex Finley. This complete article, unmodifi... Read More
posted @ 2014-09-27 20:23 godjob Views(913) Comments(0) Diggs(0)
本文背景:在编程中,很多Windows或C++的内存函数不知道有什么区别,更别谈有效使用;根本的原因是,没有清楚的理解操作系统的内存管理机制,本文企图通过简单的总结描述,结合实例来阐明这个机制。本文目的:对Windows内存管理机制了解清楚,有效的利用C++内存函数管理和使用内存。本文内容:本文一共有六节,由于篇幅较多,故按节发表。其他章节请看本人博客的Windows内存管理及C++内存分配实例(一)(二)(三)(五)和(六)。4. 内存管理机制--内存映射文件 (Map) 和虚拟内存一样,内存映射文件可以用来保留一个进程地址区域;但是,与虚拟内存不同,它提交的不是物理内存或是虚拟页文件,而是 Read More
posted @ 2014-03-20 13:46 godjob Views(812) Comments(0) Diggs(0)
Linux Epoll介绍和程序实例1. Epoll是何方神圣?Epoll可是当前在Linux下开发大规模并发网络程序的热门人选,Epoll 在Linux2.6内核中正式引入,和select相似,其实都I/O多路复用技术而已,并没有什么神秘的。其实在Linux下设计并发网络程序,向来不缺少方法,比如典型的Apache模型(Process Per Connection,简称PPC),TPC(Thread PerConnection)模型,以及select模型和poll模型,那为何还要再引入Epoll这个东东呢?那还是有得说说的…2. 常用模型的缺点如果不摆出来其他模型的缺点,怎么能对比出Epol Read More
posted @ 2014-03-14 23:51 godjob Views(293) Comments(0) Diggs(0)
一般应用:设置属性: Auto Buddy(自动取关联控件为TAB顺序前一个)Set Buddy Interger(使控件设置关联控件数值,这个值可以是十进制或十六进制)Wrap(数值超过范围时循环)Arrow keys(当按下向上和向下方向键时,控件可以增加或减小)OnInitDialog函数中设 Read More
posted @ 2014-03-06 16:53 godjob Views(2553) Comments(0) Diggs(0)
代码逻辑:拷贝功能:1.从编辑控件中获取文本。2.打开并清空剪贴板。(OpenClipboard,EmptyClipboard)3.创建一个全局缓冲区。(GlobalAlloc)4.锁定缓冲区。(GlobalLock)5.将文本拷贝到缓冲区。(strcpy)6.解锁缓冲区。(GlobalUnlock)7.将缓冲区数据设置到剪贴板(SetClipboradData)8.关闭剪贴板(CloseClipboard)剪切功能:1.拷贝(参考拷贝功能)2.删除文本。粘贴功能:1.检查并打开剪贴板.(IsClipboardFormatAvailable,OpenClipboard)2.获得剪贴板数据.(G Read More
posted @ 2014-03-06 14:07 godjob Views(731) Comments(0) Diggs(0)
#include "stdafx.h"#include #include #pragma comment(lib, "Shlwapi.lib")int _tmain(){ TCHAR szPath[MAX_PATH]; if(S_OK==SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0, szPath)) { //PathAppend(szPath, TEXT("New Doc.txt")); //HANDLE hFile = CreateFile(szPa Read More
posted @ 2014-02-28 20:29 godjob Views(502) Comments(0) Diggs(0)
Download demo project - 15.7 KbContentsIntroductionVirtual listCreating a virtual listAdd items to the listHandling the LVN_GETDISPINFO messageHandling the LVN_ODFINDITEM messageHandling the LVN_ODCACHEHINT messageChanging an itemCheck boxesNotesHistoryIntroductionLet's say you have a large data Read More
posted @ 2014-02-26 10:43 godjob Views(457) Comments(0) Diggs(0)
http://technet.microsoft.com/zh-CN/sysinternalshttp://technet.microsoft.com/en-us/sysinternals/bb896647我们利用debugView 命令可以自动生成log文件,而且是atomic。cmd -h就可以看到了。用ShellExeccute从codeProject 搜索debugview刚找到一些 http://www.codeproject.com/Articles/13345/DbMon-NET-A-simple-NET-OutputDebugString-capturerhttp://www. Read More
posted @ 2014-02-25 09:53 godjob Views(534) Comments(0) Diggs(0)
#include "stdafx.h"void dump_machine_info( HANDLE fh ){ CHAR Str[MAX_PATH*3]; CHAR MHzStr[64]; CHAR CpuId[MAX_PATH]; CHAR VendorId[MAX_PATH]; TCHAR RegPath[MAX_PATH]; ULONG i; HKEY hKey; ULONG MHz; DWORD t; ULONG l; MEMORYSTATUS ms ; for(i=0; i<128; i++) { wsprintf(RegPath, _T("HAR Read More
posted @ 2014-02-23 12:03 godjob Views(1396) Comments(0) Diggs(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 35 下一页