21,459
社区成员
发帖
与我相关
我的任务
分享
; 现在这样就可以了
.386
.model flat, stdcall
option casemap :none ; case sensitive
include windows.inc
include kernel32.inc
include user32.inc
include macros.inc ; 这里用的是资源里的宏定义文件,不是 Masm32 的!
includelib kernel32.lib
includelib user32.lib
.data
szCaption WSTR ("test-测试中文Caption", 0)
szText WSTR ("test-测试中文Text", 0)
MessageBoxW PROTO :DWORD,:DWORD,:DWORD,:DWORD
.code
start:
invoke MessageBoxW, NULL, addr szText, addr szCaption, MB_OK
invoke ExitProcess, NULL
end start
unicode macro name,string,zero
name label byte
irpc c,<string>
db '&c', 0
endm
ifnb <zero>
dw zero
endif
endm
;使用方法
unicode szCaption, <test-测试中文>,0