在main函数之前跑代码的方法 方法: 手工找到程序入口点, 替换为我们自己的函数 [cpp] view plain copy 写测试程序 // test.cpp : Defines the entry point for the console application. // #include " Read More
posted @ 2016-02-12 21:31 findumars Views(634) Comments(0) Diggs(0)
[cpp] view plain copy // test.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <windows.h> #include <crtdbg. Read More
posted @ 2016-02-12 21:28 findumars Views(681) Comments(0) Diggs(0)
实验原因 说明如何使用const描述保护类数据不会意外修改. 编译环境 vc6sp6 + win7x64 工程下载 copyConstruction_constMemberFunction.zip 使用非const成员函数,引起的拷贝构造函数报错 [cpp] view plain copy clas Read More
posted @ 2016-02-12 21:27 findumars Views(770) Comments(0) Diggs(0)
[cpp] view plain copy #include <iostream> #include <limits> using namespace std; #define SAFE_DELETE(x) \ { \ if (NULL != (x)) \ { \ delete (x); \ (x) Read More
posted @ 2016-02-12 21:25 findumars Views(1550) Comments(0) Diggs(0)
测试程序功能 打印出自己进程的程序入口点地址. 结合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(247) Comments(0) Diggs(0)