i want to display the value of a integer
Posted on 2003-09-15 00:31:14 by lovelypp
There are two functions documented in Win32 Programmer's Reference: wvsprintf & wsprintf (the second uses the C calling convention, so you must balance the stack). They converts your data to strings in Win32 API. Strings are easy diplayed :)

The following is code I use to convert come DWORDs to HEX strings
To use it for integers , you should use "i" instead of "#%.8X", if I'm not wrong.

buffer BYTE " ",0
Address DWORD ?
Code DWORD ?
Form BYTE "Stop at Address : #%.8X", 0Dh,\
"Error Code : #%.8X",0Dh,0

invoke wvsprintf, ADDR buffer, ADDR Form, ADDR Address
Posted on 2003-09-15 01:17:09 by S.T.A.S.
If you are using MASM32 there is no need to balance the stack after wsprintf, the library function will take care of that for you.
Posted on 2003-09-15 01:46:24 by donkey
Well if you want to use sprintf read the wsprintf or the MSDN on the sprintf

then download this from my site... is a lib i made and inc file so that you can use it..

Posted on 2003-09-15 02:36:27 by devilsclaw