能力值:
( LV2,RANK:10 )
|
-
-
2 楼
你想怎么弹出?
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
使用MessageBox函数
|
能力值:
( LV2,RANK:10 )
|
-
-
4 楼
就是这样弹出:
_SendFile proc
local @stWndClass:WNDCLASSEX
local @stMsg:MSG,hInstance
invoke GetModuleHandle,NULL
mov hInstance,eax
invoke RtlZeroMemory,addr @stWndClass,sizeof @stWndClass
invoke LoadCursor,0,IDC_ARROW
mov @stWndClass.hCursor,eax
push NULL
pop @stWndClass.hInstance
mov @stWndClass.style,CS_HREDRAW or CS_VREDRAW
mov @stWndClass.lpfnWndProc,offset _ProcWinMain
mov @stWndClass.hbrBackground,COLOR_WINDOW + 1
mov @stWndClass.lpszClassName,offset szClassName
invoke RegisterClassEx,addr @stWndClass
invoke CreateWindowEx,WS_EX_CLIENTEDGE,\
offset szClassName,offset szCaptionMain,\
WS_OVERLAPPEDWINDOW,\
100,100,600,400,\
NULL,NULL,NULL,NULL
mov hWinMain,eax
invoke ShowWindow,hWinMain,SW_SHOWNORMAL
invoke UpdateWindow,hWinMain
.while TRUE
invoke GetMessage,addr @stMsg,NULL,0,0
.break .if eax == 0
invoke TranslateMessage,addr @stMsg
invoke DispatchMessage,addr @stMsg
.endw
ret
_SendFile endp
用下面的也不行:
invoke DialogBoxParam,eax,DLG_MAIN,NULL,offset _ProcDlgMain,0
|
能力值:
( LV5,RANK:60 )
|
-
-
5 楼
楼主应该把代码帖全啊
|
能力值:
( LV9,RANK:490 )
|
-
-
6 楼
mov @stWndClass.cbSize SIZEOF WNDCLASSEX试试
|
能力值:
( LV2,RANK:10 )
|
-
-
7 楼
.386
.model flat,stdcall
option casemap:none
;include文件定义
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
;数据段
.data
szCaption db 'A MessageBox !',0
szText db 'Hello,World !',0
;代码段
.code
start:
invoke MessageBox,NULL,offset szText,\
offset szCaption,MB_OK
invoke ExitProcess,NULL
end start
|