long ldata = _tcstol(m_strData,0,10); // CString to long under UNICODE condition!! int ndata = _ttoi(m_strData);