I have 2 text boxes with numbers in them. how do I subtract them and put the result in a third text box.
I tried this
.data
gettext1 DB 100 DUP(?)
gettext2 DB 100 DUP(?)
gettext3 DB 100 DUP(?)
.code
LOCAL pmem1 :DWORD
invoke GetDlgItemText,hWin,MeasuredlengthXtextbox,esi,100
invoke GetDlgItemText,hWin,MeasuredlengthYtextbox,edi,100
sub esi,edi
mov pmem1,esi
invoke lstrcpy,addr gettext1,pmem1
invoke SetDlgItemText,hWin,ResultlengthXtextbox,addr gettext3
when I try this code it shows up nothing in the textbox
thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…