|
发表于 2014-7-20 21:24:43
From FishC Mobile
|
显示全部楼层
|阅读模式
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
这是代码,
.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
我有时候直接复制代码粘贴也会出现这种情况,,,,, |
|