Hello ppl, i'm new here and read all faqs and rules before posting, so i hope i'm not going to make a mistake in asking my "newbie's question", but if i didn't see something about it, thanks to point me to the text :)

I tried to read Iczelion's Tutorial too as i'm quite newbie to assembly programming but i really want to learn.
Here is my problem :
I understood how to write in an editbox with static text...for example :


Text db"editbox text",0
....
invoke CreateWindowExA,WS_EX_CLIENTEDGE, ADDR EditClass,NULL,\
WS_CHILDWINDOW or WS_MAXIMIZEBOX or WS_VISIBLE\
,70,140,240,20,hwin,NULL,hInstance,NULL
mov hwndEditBox,eax
....
invoke SetWindowTextA,hwndEditBox,ADDR Text


This works fine, but now when i make a few math calculs and want to write the result in this editbox :


number DWORD ?
...
invoke CreateWindowExA,WS_EX_CLIENTEDGE, ADDR EditClass,NULL,\
WS_CHILDWINDOW or WS_MAXIMIZEBOX or WS_VISIBLE\
,70,140,240,20,hwin,NULL,hInstance,NULL
mov hwndEditBox,eax
....
mov esi, 07D2h
mov number,esi
...
invoke SetWindowTextA,hwndEdit2,ADDR number


In results i get ascii char for 7D2h = 2002, and tried different way but i can't get "2002" in the editbox (that's what i want)
I read something about wsprintf and tried too but no more results
I think it's maybe just a format thing to do, but i'm newbie :(

Any help or links to help me with this problem would be appreciated and congrats for this great forum
Thanks
regards
Posted on 2003-02-04 12:27:21 by backeye
Look up dwtoa in the masm32 lib.
It converts double word values to
printable ASCII representations of
the number.
Posted on 2003-02-04 13:33:31 by anon
damn i saw that somewhere in the forum but didn't think it was that sorry :/
But it works, nice !

thanks anon :)
Posted on 2003-02-04 14:02:47 by backeye