- UID
- 6086
注册时间2005-12-29
阅读权限10
最后登录1970-1-1
周游历练

该用户从未签到
|
============================================
.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
.data
MsgBoxCaption db "执行成功!",0
MsgBoxText db "执行成功!要继续吗?",0
.data?
hInstance DWORD ?
.code
start:
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption, 1
mov hInstance,eax ;hInstance是个整数型的,怎样在MessageBox中调用啊
invoke MessageBox, NULL, addr hInstance, addr MsgBoxCaption, MB_OK
invoke ExitProcess, NULL
end start
===================================================
我刚学汇编,先谢谢了!
[ 本帖最后由 hacker0058 于 2006-6-23 18:46 编辑 ] |
|