Hi, One more question, how to get an integer from a dialog box? GetDlgItemText won't do any good since it gets a string. Thanks. Yihang