定时器的问题 求高手指点下 编译可以通过 但是生成的exe达不到想要的效果
.386.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
include kernel32.inc
includelib user32.lib
includelib kernel32.lib
.data
dwCount dd 60
szCaption db "定时"
szText db "1分钟已到"
.data?
hInstance dd ?
idTimer dd ?
.code
_ProcTimer proc _hWnd,uMsg,_idEvent,_dwTime
pushad
invoke MessageBox,NULL,offset szText,offset szCaption,MB_OK
invoke KillTimer,NULL,idTimer
popad
ret
_ProcTimer endp
start:
invoke SetTimer,NULL,NULL,60000,addr _ProcTimer
mov idTimer,eax
invoke ExitProcess,NULL
end start