回 帖 发 新 帖 刷新版面

主题:[原创]请各位大哥哥再帮帮忙

.386
.model flat, stdcall
option casemap:none
include c:\masm32\include\windows.inc
include c:\masm32\include\kernel32.inc
includelib c:\masm32\LIB\kernel32.lib
include c:\masm32\include\user32.inc
includelib c:\masm32\LIB\user32.lib
.data
MsgCaption      db "Iczelion's tutorial no.2",0
MsgBoxText      db "Win32 Assembly is too difficult!",0

.code
start:
invoke MessageBox, NULL,addr MsgBoxText, addr MsgCaption, MB_OK
invoke ExitProcess,NULL
end start


上面的程序我编译过后的结果是这样的,有什么错误啊,请高手指点一下,谢谢你们了
我的MASM32装在C盘下

C:\masm32\bin>ml /c/coff/Cp c:\file\test.asm
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

MASM : warning A4018: invalid command-line option : /c/coff/Cp
MASM : fatal error A1017: missing source filename

回复列表 (共2个回复)

沙发

/c /coff /Cp 

之间要分开

板凳

好了,谢谢你~_~

我来回复

您尚未登录,请登录后再回复。点此登录或注册