摘要: void MessageBX() //事例函数 {     HWND hwnd=NULL;     char message[]="haohao ";     char message2[]="hehe ";     int b=0; &#... 阅读全文
posted @ 2010-04-11 13:06 Yan Zhe 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 有两种方法可以复用上面这段代码,第一种方法是把这段代码复制到一个汇编编译器中编译成object,然后在VC中链接这个外部函数,但是这种方法需要额外的编译器,使用起来比较复杂。本文主要介绍第二种方法,就是在VC编译器中复用这段汇编代码,然后直接编译调试。 在VC编译器中使用内联汇编,有两种方式:一种是在每一条指令前面加上__asm,另外一种方式比较适合大段汇编代码,就是使用__asm { } 包含汇... 阅读全文
posted @ 2010-04-11 11:49 Yan Zhe 阅读(420) 评论(1) 推荐(0) 编辑
摘要: // Bug_Test.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> #include <Windows.h>     typedef int (__stdcall  *... 阅读全文
posted @ 2010-04-11 11:25 Yan Zhe 阅读(354) 评论(0) 推荐(0) 编辑