========================================================
我的代码:
int nIndex = this->m_Selectcomputer.GetCurSel();
CString strItem;
m_Selectcomputer.GetLBText( nIndex, strItem); 
========================================================
atlsimpstr.h:
void SetLength( _In_ int nLength )
{
         ATLASSERT( nLength >= 0 );
ATLASSERT( nLength <= GetData()->nAllocLength ); if( nLength < 0 || nLength > GetData()->nAllocLength)
AtlThrow(E_INVALIDARG);

GetData()->nDataLength = nLength;
m_pszData[nLength] = 0;
}
=============================================================调式的时候发现nLength值为-1;