高手帮我看看 编译出错了
程序: 书上的例程(文件名P10.asm).386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kerne132.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.date
MsgCaption db "hi,masm32!",0
MsgBoxText db "win32 assembly is great!",0
.code
start:
invoke MessageBox,NULL,addr MsgBoxText, addr MsgCaption,MB_ok
invoke Exitprocess,NULL
end start
我用MASM32 V10编译如图
还有书上说了个设置环境变量的批处理文件
我MASM32安装在C盘
@echo off
set include=c:\masm32\include
set lib=c:\masm32\lib;c:\masm32\m32lib;d:\program files\microsoft sd\lib
setpath=c:\masm32\lib;c:\masm32\m32lib;d:\program files\microsoft sd\bin
start cmd.exe /k
@echo on
怎么就没有用呢,把这个BAT放入C盘运行提示信息