测试程序功能 打印出自己进程的程序入口点地址. 结合OD载入程序,看到的入口点确实是0x004014f0, 说明程序入口点找到了 测试程序 [cpp] view plain copy /// @file exam_1_1.c #include <stdlib.h> #include <stdio.h Read More
posted @ 2016-02-12 21:23
findumars
Views(244)
Comments(0)
Diggs(0)
原理分析 当调用一个虚函数时, 编译器生成的代码会调用 虚表地址[0](param1, param2)这样的函数. 已经不是在调用函数名了. 当我们将虚表地址[n]中的函数实现改为另外的函数, 虚函数的实现就由我们来控制了. 实验 根据虚表原理, 实验一下修改自己程序的虚函数表项地址. 使编译器生成 Read More
posted @ 2016-02-12 21:22
findumars
Views(390)
Comments(0)
Diggs(0)
C语言标准是没有 try-catch语法 的, M$家自己提供了一组. [cpp] view plain copy /// @file ClassroomExamples.c /// @brief 验证C语言的非标准try, catch #include <windows.h> #include < Read More
posted @ 2016-02-12 21:17
findumars
Views(604)
Comments(0)
Diggs(0)
围观M$的new 对于new一个类, M$为了拷贝和移动时的效率问题, 使用了非标准的new语法, 为了兼容性, 只能围观. http://blog.csdn.net/lostspeed/article/details/50458432 Read More
posted @ 2016-02-12 21:15
findumars
Views(254)
Comments(0)
Diggs(0)
前言 庖丁解牛 - <<庄子>>庖丁为文惠君解牛,手之所触, 肩之所倚, 足之所履, 膝之所踦, 砉然向然, 奏刀騞然, 莫不中音, 合于《桑林》之舞, 乃中《经首》之会.文惠君曰:"嘻, 善哉! 技盍至此乎?"庖丁释刀对曰:"臣之所好者, 道也, 进乎技矣.始臣之解牛之时, 所见无非牛者.三年之后 Read More
posted @ 2016-02-12 21:10
findumars
Views(851)
Comments(0)
Diggs(0)