My problem is this. I am reading an ascii-string from the commport (for example 268,0) to an editbox. Now i want to increase the value by 1 by pressing a button. My code is this.

invoke GetDlgItemText,hWnd,IDC_EDT1,addr Kurs,8
mov eax,offset Kurs
mov edx,
add edx,1
mov ,edx
invoke SetDlgItemText,hWnd,IDC_EDT1,eax

The result is 368.0 which means that the ascii-sign for 2 (32) increases to 33. How do I code a matimatical operation?

Thank you
Posted on 2002-09-16 15:04:47 by minor28
GetDlgItemInt
SetDlgItemInt
Posted on 2002-09-16 15:17:47 by stryker
Thanks, that easy
Posted on 2002-09-16 16:08:13 by minor28