========================================================
我的代码:
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;
我的代码:
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;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货