Scolinks wrote: You can use the atoi() function if it a CString. If it is LPTSTR or some other string stuff I prefer writing them on an invisible static text box and retrieving them as an interger. I hope this helps! Well... I am a beginner ... Yuck! (the static text box thing) But forgivable for a beginner (just :-)) I think it's time you were introduced to the boost library, and in particular the lexical_cast<> template. Also note that an LPTSTR (long pointer to a TCHAR string) can be one of two things - a pointer to a char array (char *), or a pointer to a wide-char string (wchar_t *, which is a full type in VC.NET, and a typedef for short in VC6) The T bit is the TCHAR thing mentioned earlier - TCHAR means char or wchar_t, depending on if you are building an ANSI/ASCII version of your code, or a UNICODE one. I would suggest that you look up the relevant functions for conversions, which can handle unicode or ansi strings as necessary (eg, _tcstoul for converting a LPTSTR to an unsigned long). HTH -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky