1 CString str; 2 double pos; 3 TCHAR* strTmp;//临时(无用?) 4 GetDlgItem(IDC_EDIT1)->GetWindowText(str); 5 pos = wcstod(str,&strTmp);