News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Need Help !

Started by cyber48PGL, April 03, 2014, 03:33:53 AM

Previous topic - Next topic

cyber48PGL

Hi Buddies!


I want to make an application which could allow me to insert three numbers in three different comboboxes . Here appears the problem . I don't know how I could take the "string" from the combobox and convert it to an integer ...
I will be very glad if you could give me any ideas .
( I started from the example attached )

Regards!

jj2007

Check \Masm32\help\masmlib.chm, "Conversions".

Force

There is an example code named " basic maths "
hope it will help you

http://members.a1.net/ranmasaotome/projects.html

cyber48PGL


cyber48PGL

I've got one more question .

How could I printf in the Messagebox a message like this : "The result is : (result)" , where (result) is the actual result  .

Thank you in advance !

Vortex

Hi cyber48PGL,

Here is a quick example :

include     \masm32\include\masm32rt.inc

.data

_title      db 'Test',0
_format     db 'x = %d',0

.data?

buffer      db 8 dup(?)

.code

start:

    invoke  wsprintf,ADDR buffer,ADDR _format,100

    invoke  MessageBox,0,ADDR buffer,ADDR _title,MB_OK

    invoke  ExitProcess,0

END start

cyber48PGL

Thank you very much !