直接上代码
.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
include msvcrt.inc
includelib kernel32.lib
includelib user32.lib
includelib msvcrt.lib
.data
str1 db 256 dup(0)
str2 db 'H','e','l','l','o',0
.code
start:
invoke crt_strcpy,offset str1 ,offset str2
invoke MessageBox,NULL,offset str1,NULL,MB_OK
ret
end start
在这里,crt_strcpy就是strcpy了