Tienes que transformar el ASCII
Mira esta función
;Funcion que pasa ASCII a un DWORD :P
proc StrToInt uses ebx esi, lpStr
mov esi,[lpStr]
mov ecx,10
xor edx,edx
@StrToIntLoop:
lodsb
test al,al
jz @StrToIntEnd
sub al,'0'
xor ebx,ebx
mov bl,al
lea eax,[edx*2]
lea eax,[eax+edx*8]
lea edx,[eax+ebx]
dec ecx
jnz @StrToIntLoop
@StrToIntEnd:
mov eax,edx
ret
endp
También podrias usar la api GetDlgItemInt para obtener el numero directamente
http://msdn.microsoft.com/en-us/library/ms645485%28VS.85%29.aspxPD: Algo interesante para ti
http://www.ascii.cl/es/