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
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
GetDlgItemInt
SetDlgItemInt
SetDlgItemInt
Thanks, that easy