新手求助,MASM32V9R安装和配置问题
从官方下载的M32V9R,安装是选择C盘目录,START后出现如此对话框
[无法传图,晕]自己写
Pleas run the install correctly
this istallation is not designed to run unattended or in the background.it performs processor intensive operation to build
and may not work correctly or build the libraries if run unattended
or at low priority
说我安装不正确,大意好像是低优先权下它不能正常工作和建立运行库。
(机器配置为P42.8G+512M+40G,WINXP PRO_SP2,有开发工具VA.NET,NETBEANA,J2SE和MSDN。
使用ADMIN用户安装。。)
Extract完成后,
BUILDS成功。。打开Quick Editor。
设置环境变量
include=C:\masm32\include
lib=C:\masm32\lib
path=C:\masm32\bin
CMD下运行ML.EXE,成功。。
但是利用QEdit COMPILE时以下最简单代码时(书上源码),出现错误。
.386
.model flat, stdcall
option casemap :none ; case sensitive
include windows.inc
include kernel32.inc
includelib kernel32.lib
.data
szCaption db 'Win32汇编例子',0
szText db 'Win32汇编,Simple and powerful!',0
.code
start:
invoke MessageBox,NULL,addr szText,addr szCaption,MB_OK
invoke ExitProcess,NULL
end start
错误:
Microsoft (R) Windows (R) Resource Compiler, Version 5.00.1823.1 - Build 1823
Using codepage 936 as default
Creating rsrc.RES
RC: RCPP -CP 936 -f C:\Documents and Settings\动力板车\桌面\RCa06668 -g C:\Docum
ents and Settings\动力板车\桌面\RDa06668 -DRC_INVOKED -D_WIN32 -pc\:/ -E -I. -I
. -I d:\Program file\vs.net\SDK\v1.1\include\ -I C:\masm32\include
RC : fatal error RC1110 : could not open rsrc.rc
Microsoft (R) Windows Resource To Object Converter Version 5.00.1736.1
CVTRES : fatal error CVT1101: cannot open rsrc.res for reading
请按任意键继续. . .
如果直接在CMD下编译,则出现下列问题
D:\>ml mls.asm
Microsoft (R) Macro Assembler Version 6.14.8444
Assembling: mls.asm
mls.asm(17) : error A2006: undefined symbol : MessageBox
错误:
Microsoft (R) Windows (R) Resource Compiler, Version 5.00.1823.1 - Build 1823
Using codepage 936 as default
Creating rsrc.RES
RC: RCPP -CP 936 -f C:\Documents and Settings\动力板车\桌面\RCa06668 -g C:\Docum
ents and Settings\动力板车\桌面\RDa06668 -DRC_INVOKED -D_WIN32 -pc\:/ -E -I. -I
. -I d:\Program file\vs.net\SDK\v1.1\include\ -I C:\masm32\include
RC : fatal error RC1110 : could not open rsrc.rc
Microsoft (R) Windows Resource To Object Converter Version 5.00.1736.1
CVTRES : fatal error CVT1101: cannot open rsrc.res for reading
请按任意键继续. . .
我开始用汇编时就没用过这个自带的Quick Editor软件,上面的错误是不能打开rsrc.rc文件,将你的*.rc文件改成rsrc.rc应该就可以了。
最后推荐你使用RadASM、EditPlus、MASMPlus来写汇编会更顺手。