摘要: 有不懂的C语言声明请猛击http://cdecl.org 阅读全文
posted @ 2014-06-16 09:59 shokey520 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 超赞的github使用动画教程。http://pcottle.github.io/learnGitBranching/ 阅读全文
posted @ 2014-06-16 09:56 shokey520 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 有时候chm由于某些安全原因会被系统锁定。右击文件,点属性,在弹出窗口最下面可以看到解除锁定的按钮。点击后即可正常浏览chm文件。但是如果某文件夹下有很多chm文件,一个一个操作就比较累了。这里推荐streams工具。这是一个命令行工具,如要解锁D:\test下所有chm文件的锁定。键入:strea... 阅读全文
posted @ 2014-06-16 09:55 shokey520 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 本示例使用比较函数,函数对象进行vector的排序与查找操作。#include #include using namespace std;#define MAX_NAME_LEN 32struct Student{ int no; char name[MAX_NAME... 阅读全文
posted @ 2014-06-16 09:53 shokey520 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 1、函数指针使用示例typedef void (*FPFunc) ();void func() {}int main(){ FPFunc pFunc = func; pFunc();}2、类成员函数指针使用示例class C {public: typedef void (C::*FP... 阅读全文
posted @ 2014-06-16 09:40 shokey520 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 根据进程ID获取进程路径有两种方法:方法1:OpenProcess --> GetModuleFileNameEx方法2:OpenProcess --> EnumProcessModules --> GetModuleFileNameEx注意事项:1、使用GetModuleFileNameEx()而... 阅读全文
posted @ 2014-06-16 09:16 shokey520 阅读(2466) 评论(0) 推荐(0) 编辑
摘要: PeekMessage函数:先看看MSDN怎么说:PeekMessage functionDispatches incoming sent messages, checks the thread message queue for a posted message, and retrieves th... 阅读全文
posted @ 2014-05-28 15:40 shokey520 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 《windows核心编程》第26章详细的分析了窗口消息,让人豁然开朗。学习小结:1、消息队列分为Post消息队列、Send消息队列、虚拟输入消息队列和应答消息队列。2、PostMessage是将消息发送到消息的线程队列然后返回。3、SendMessage表面看是发送消息,等消息处理完毕后返回。实际上... 阅读全文
posted @ 2014-05-28 10:29 shokey520 阅读(282) 评论(0) 推荐(0) 编辑
摘要: /* 此处代码示例C++类构造和析构的限定符使用 主要包括以下内容: + 禁止产生基类对象 + 单例 + 禁止堆上产生对象 + 禁止栈上产生对象*/#pragma once#include using namespace std;/... 阅读全文
posted @ 2014-05-27 16:12 shokey520 阅读(151) 评论(0) 推荐(0) 编辑
摘要: C语言宏#和##一、基本用途#用于将宏定义中的参数转换为字符串。例:存在宏#define TO_STRING(x) #x则TO_STRING(hello)展开为"hello"##用于拼接Token。例:存在宏#define DECLARE_HANDLER(x) x##_handler则DECLARE... 阅读全文
posted @ 2014-05-22 09:46 shokey520 阅读(545) 评论(0) 推荐(0) 编辑