鱼C论坛

 找回密码
 立即注册
查看: 1723|回复: 0

关于编译的问题,困扰了我很多天

[复制链接]
发表于 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

我有时候直接复制代码粘贴也会出现这种情况,,,,,
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-3-29 04:41

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表