关于编译的问题,困扰了我很多天
这是代码,.386
.model flat,stdcall
option casemap:none
;-------------include-----------
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
;------------数据----------------
.data?
szBuffer db 265 dup(?)
hWnd db ?
.data
szText 'my name is xiaopeng',0
szDestClass 'Myclass'
.code
start:
invoke FindWindow,addr szDestClass,NULL
if eax
mov hWnd,eax
invoke Wsprint,offset szBuffer,szText
invoke SendMessage,hWnd,WM_SETTEXT,0,addr szText
.endif
invoke ExitProcess,NULL
end start
这是错误提示
Assembling: ee.asm
ee.asm(1) : error A2085: instruction or register not accepted in current CPU mode
ee.asm(1) : error A2039: line too long
ee.asm(1) : error A2088: END directive required at end of file
我有时候直接复制代码粘贴也会出现这种情况,,,,,
页:
[1]