Hi guys,
In TASM when ever i call a function am i right in thinking that the result is stored in eax? If so, say i want to put what ever value is in eax into a an edit box using setdlgitemtext how would i perform this?
I've tried moving eax into a variable then calling setdlgitem but all iget are ascii codes.
Regards,
Dave
In TASM when ever i call a function am i right in thinking that the result is stored in eax? If so, say i want to put what ever value is in eax into a an edit box using setdlgitemtext how would i perform this?
I've tried moving eax into a variable then calling setdlgitem but all iget are ascii codes.
Regards,
Dave
It doesn't have anything to do with TASM specifically. What registers are used (and how) is determined by the calling convention used by particular function. STDCALL convention returns values in eax. Most (not all) winapi functions are of stdcall type.
setdlgitemtext requires (among other things) a pointer to a text, not a value. You should use "SetDlgItemInt" to put a value into an edit box.
setdlgitemtext requires (among other things) a pointer to a text, not a value. You should use "SetDlgItemInt" to put a value into an edit box.
Thank YOU!!!
Maybe i should consult win32api help more often :D
Maybe i should consult win32api help more often :D
Use msdn man ;)