下面是我写的一个小程序 请帮我看看:
哪有错
.586
.model flat,stdcall
option casemap:none
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
includelib \masm32\lib\comdlg32.lib
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
include \masm32\include\comdlg32.inc
include \masm32\include\windows.inc
.data?
lpFileName db 256 dup(?)
.data
lp0fn dd 10fn
dd 0
dd 0
dd offset szFilter
dd 0
dd 0
dd 0
dd offset lpFilename
dd 256
dd 0
dd 0
dd 0
dd offset szcaption
dd OFN_HIDEREADONLY
dw 0
dw 0
dd 0
dd 0
dd 0
dd 0
l0fn equ $-lp0fn
title db "这是一个实验",0
.code
start:
push offset lp0fn
call GetOpenFileNameA
test eax,eax
inc eax
je _exit
xor eax,eax
push eax
push offset title
lea ebx,offset lpFilename
push ebx
push 00h
call MessageBoxA
xor edx,edx
_exit:
push edx
call ExitProcess
end start
我也知道有问题 主要是那个GetOpenFileNameA 这个API的参数在哪个库中 ?
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!