Hi to all. I am wondering how I can put string as func param. Something like that
invoke MessageBox,0, SADD("blabla"), SADD("blabla"),MB_OK
In masm there are 3 macro which do that.
; ---------------------
; literal string MACRO
; ---------------------
literal MACRO quoted_text:VARARG
LOCAL local_text
.data
local_text db quoted_text,0
.code
EXITM <local_text>
ENDM
; --------------------------------
; string address in INVOKE format
; --------------------------------
SADD MACRO quoted_text:VARARG
EXITM <ADDR literal(quoted_text)>
ENDM
; --------------------------------
; string offset for manual coding
; --------------------------------
CTXT MACRO quoted_text:VARARG
EXITM <offset literal(quoted_text)>
ENDM
But the problem is in that I do not know how to translate this 3 macro into fasm macro code. If some one know please help me.
Thanks in advance.