关于MASM32编译出错问题
最近在看PE结构,学习的时候有一段简单的代码,可是就是编译通不过,代码如下
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
szText db 'helloworld',0
.code
start:
invoke MessageBox,NULL,offset szText,NULL,MB_OK
invoke ExitProcess,NULL
end start
我设置的环境变量是:
include=c:\masm32\include
lib=c:\masm32\lib
path=c:\masm32\bin
编译的时候错误如下:
感觉最严重的应该就是那句"cannot open rsrc.res" helloworld Structure
[解决办法]
给分吧,注意最前面加了个什么
.586
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
szText db 'helloworld',0
.code
start:
invoke MessageBox,NULL,offset szText,NULL,MB_OK
invoke ExitProcess,NULL
end start