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.


Posted on 2008-09-19 06:57:28 by sidey1234
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.
Posted on 2008-09-19 07:01:39 by ti_mo_n
Thank YOU!!!

Maybe i should consult win32api help more often :D
Posted on 2008-09-19 07:07:31 by sidey1234
Use msdn man  ;)
Posted on 2008-09-19 07:30:32 by roticv