int nCases = _wtoi((LPCTSTR)(CString)); nCases = _wtoi((LPCTSTR)(g_strGroupArray[m_iCurrentSelGroupNum].Mid(3*j,3)));