求助win32汇编 编程为什么中文显示错误啊!!
.386.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
szCaptiondb 'Welcome to fishc.com',0
szTest db 'Hello,World!!',0
szOK db '你刚刚点击了Ok按钮',0
szCANCEL db '你刚刚点击了Cancel按钮',0
.code
start:
invoke MessageBox,NULL,offset szTest,offset szCaption,MB_OKCANCEL or MB_ICONQUESTION
.if eax == IDOK
invoke MessageBox,NULL,offset szOK,offset szCaption,MB_OK
.else
invoke MessageBox,NULL,offset szCANCEL,offset szCaption,MB_OK
.endif
end start
显示结果为
楼主ing…… 源码的编码应该为UTF-8,可能你的编码为ANSI,所以会出现乱码。
页:
[1]