随笔分类 -  草稿箱

 
OLE Automation
摘要:OLE Automation (later renamed by Microsoft to just Automation), is an inter-process communication mechanism based on Component Object Model (COM) that was intended for use by scripting languages – ori... 阅读全文
posted @ 2013-02-05 17:17 做个不善的人 阅读(2784) 评论(0) 推荐(0)
需要必知必会,倒背如流的经典算法和实现
摘要:二叉树的遍历算法(递归和迭代)#include <iostream>#include <stack>using namespace std;template <typename T>class BinaryTree{public: BinaryTree(){} class TreeNode { public: TreeNode(){ visited = false;} TreeNode* left; TreeNode* right; ... 阅读全文
posted @ 2013-02-05 15:55 做个不善的人 阅读(394) 评论(0) 推荐(0)
C++与多态
摘要:什么是多态?我偶尔也谈多态,而且以为我了解多态,但真要细说起来,还真是说不清楚,搜集了网上的一些介绍,巩固一下知识吧:多态的一个广泛认可的定义是 “一种将不同的特殊行为和单个泛化记号相关联的能力”,一个符号可以表达不同的行为,想想C++中有哪些feature是跟这个能力相关的:1. 继承+虚函数:父类指针可以指向子类对象,调用虚函数时,执行子类对象的重载版本,从而实现一个symbol,却产生不同的行为;2. 重载(overloading), 运算符重载:除了我们经常使用的=,<等运算符,我们还可以重载函数调用运算符,从而支持函数对象;3. 重写(override):方法的名字是一样的,不 阅读全文
posted @ 2012-11-27 16:56 做个不善的人 阅读(151) 评论(0) 推荐(0)
Windows 异常处理(Structured Exception Handling)
摘要:这个也得看!http://msdn.microsoft.com/en-us/library/ms680657(v=vs.85).aspx 阅读全文
posted @ 2012-09-13 19:47 做个不善的人 阅读(200) 评论(0) 推荐(0)
Planned list
摘要:字符串匹配算法还需要理解BM http://www.cnblogs.com/whyandinside/archive/2012/06/03/2532651.html RMQ与LCA http://www.cnblogs.com/whyandinside/archive/2012/07/23/2604333.html LCS的DP解(用C++实现?) http://www.cnblogs.com/w... 阅读全文
posted @ 2012-08-13 07:56 做个不善的人 阅读(187) 评论(0) 推荐(0)
select vs. poll
摘要:select()监测多个文件描述符,等待一个或者多个文件描述符对某些类型的IO操作(Read,Write)变成Ready状态。A file descriptor is considered ready if it is possible to perform the corresponding I/O operation without blocking. Reference1. http://daniel.haxx.se/docs/poll-vs-select.html 阅读全文
posted @ 2012-03-04 14:13 做个不善的人 阅读(255) 评论(0) 推荐(0)
pending list
摘要:http://www.cnblogs.com/haippy/archive/2011/12/17/2290956.html http://msdn.microsoft.com/zh-cn/magazine/cc163311.aspx http://drdobbs.com/184416590 http://dotnetfresh.cnblogs.com/archive/2005/06/27/1818... 阅读全文
posted @ 2012-02-19 16:40 做个不善的人 阅读(297) 评论(0) 推荐(0)
About “condition variables”
摘要:1. 条件变量是用来发信号的,并不是用于互斥访问。 2. 使用条件变量时,需要注意Spurious wakeups。 Ref: http://www.cnblogs.com/leaven/archive/2010/06/03/1750973.html 阅读全文
posted @ 2012-02-19 16:39 做个不善的人 阅读(137) 评论(0) 推荐(0)
Dynamic-Link Libraries on Windows vs. Linux
摘要:A DLL can define two kinds of functions: exported and internal. The exported functions are intended to be called by other modules, as well as from within the DLL where they are defined. Internal functions are typically intended to be called only from within the DLL where they are defined. Although a 阅读全文
posted @ 2011-04-01 15:22 做个不善的人 阅读(224) 评论(0) 推荐(0)
Overview of DirectX, Audio/Voice, Video on Windows
摘要:DirectX Media Objects (DMOs) are COM-based data-streaming components. In some respects, DMOs are similar to DirectShow filters. Like DirectShow filters, DMOs take input data and use it to produce output data. However, the APIs for DMOs are much simpler than the corresponding APIs for DirectShow. As 阅读全文
posted @ 2010-12-13 21:18 做个不善的人 阅读(313) 评论(0) 推荐(0)
DllMain Callback Function
摘要:An optional entry point into a dynamic-link library (DLL). When the system starts or terminates a process or thread, it calls the entry-point function for each loaded DLL using the first thread of the process. The system also calls the entry-point function for a DLL when it is loaded or unloaded usi 阅读全文
posted @ 2010-06-30 11:02 做个不善的人 阅读(214) 评论(0) 推荐(0)
DllMain Callback Function
摘要:跟exe有个main或者WinMain入口函数一样,DLL也有一个入口函数,就是DllMain。An optional entry point into a dynamic-link library (DLL). When the system starts or terminates a process or thread, it calls the entry-point function for each loaded DLL using the first thread of the process. The system also calls the entry-point func 阅读全文
posted @ 2009-08-06 16:42 做个不善的人 阅读(612) 评论(0) 推荐(0)
Glossary
摘要:[0001]Power and thermal management are becoming more challenging than ever before in all segments of computer-based systems. While in the server domain, the cost of electricity drives the need for low power systems, in mobile systems battery life and thermal limitations make these issues relevant. O 阅读全文
posted @ 2009-07-09 11:38 做个不善的人 阅读(336) 评论(0) 推荐(0)