上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 63 下一页
摘要: From MSDN: To simplify code development for various international markets, the Microsoft run-time library (CRT) provides Microsoft-specific "generic-text" mappings for many data types, routines, and o... 阅读全文
posted @ 2009-02-24 22:34 能巴 阅读(199) 评论(0) 推荐(0)
摘要: 第一部分:基本概念 1. new和operator new 看如下代码: class MyClass {…}; MyClass * p=new MyClass; 这里的new实际上是执行如下3个过程: 1. 调用operator new分配内存 ;2. 调用构造函数生成类对象;3. 返回相应指针。 operator new就像operator+一样,是可以重载的,但是不能在全局... 阅读全文
posted @ 2009-02-23 23:31 能巴 阅读(234) 评论(0) 推荐(0)
摘要: Codeguru has a good article: http://www.codeguru.com/cpp/cpp/cpp_mfc/stl/article.php/c4079 Part Of it: What Is an Allocator? If you take a look at the word allocator, you might already know that it ... 阅读全文
posted @ 2009-02-23 22:44 能巴 阅读(437) 评论(0) 推荐(0)
摘要: 1. Cross platform support.2. Thread-safety3. x64 MigrationKeep learning...... 阅读全文
posted @ 2009-02-22 22:09 能巴 阅读(350) 评论(0) 推荐(0)
摘要: assert(CRT) #include void assert( int expression ); stdio.h VS cstdio If you are writing c code, please use stdio.h; if c++, please use cstdio. Functionally, these two header files are the same. One ... 阅读全文
posted @ 2009-02-22 20:10 能巴 阅读(378) 评论(0) 推荐(0)
摘要: Get it from: http://msdn.microsoft.com/zh-cn/magazine/cc188714(en-us).aspx In one word, in order to use STL string to be adaptive with Unicode, the best way is to define a tstring as follows: #includ... 阅读全文
posted @ 2009-02-22 19:56 能巴 阅读(1242) 评论(0) 推荐(0)
摘要: VS project property sheet As projects in a solution grow more and more, the project setting management will be more and more complicated. Modifying one by one will be hard work and easy to cause mist... 阅读全文
posted @ 2009-02-21 14:41 能巴 阅读(1377) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2009-02-19 22:56 能巴 阅读(177) 评论(0) 推荐(0)
摘要: 一句话总结:DllMain函数是dll的entry point。但是,有两种dll可以不用带dllmain函数:一种自然是资源dll;另一种是dll不需要在entry point做什么事情,所以不写了干脆。但是系统在往进程里加载一个dll的时候,一定会去找dllmain的。如果dll本身没有提供,那么会调用一个默认的(应该是CRT的)dllmain函数。 MSDN上的话: DllMain Call... 阅读全文
posted @ 2009-02-19 22:31 能巴 阅读(685) 评论(0) 推荐(0)
摘要: 一句话总结:所有各种文件格式(文本,exe,视频,图片),物理上来看,都是二进制文件;逻辑上来讲,由于各自的编码方式不同,加上文本文件的历史悠远,就出现了除了文本文件,其他都统一叫做二进制文件。 同理不同话:"二进制文件"本来就是一种似是而非的叫法。我们知道,存在有种类繁多的不同类型(格式)的文件,如文本文件,视频文件,图像文件,数据库文件....,文件格式的具体定义取决于应用。不同的文件格式的主... 阅读全文
posted @ 2009-02-19 22:02 能巴 阅读(523) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 63 下一页