Ok, ho fatto in questo modo...
sembra funzionare.
codice:case 1: LPTSTR a = new TCHAR[128]; LPTSTR b = new TCHAR[128]; GetWindowText(GetDlgItem(hwnd,2), a , 128 ); GetWindowText(GetDlgItem(hwnd,3), b , 128 ); int aV = conv.FromCharToInt(a); int bV = conv.FromCharToInt(b); int x = aV + bV; SetWindowText(GetDlgItem(hwnd,4), conv.FromIntToConstChar(x) ); delete a; delete b; break;

Rispondi quotando