CString SC30Token, SC50Token;
int pos = 0;
int count= 0;
while((SC30Token = dlg.m_SC2.m_SC30_Total.Tokenize("\n",pos)) != "")
{
dlg.m_SC2.TempSc30[count++] = SC30Token;
}
sc30에 내용이 저장된다. Tokenize에 자르려는 내용 넣는다.
또는
if(m_SC30LCindex != 0)
{
int count = 0;
CString strA, strB, strC, strD,strE;
while(count < m_SC30LCindex)
{
AfxExtractSubString(strA, TempSc30[count], 0, '@'); // strA == "192"
AfxExtractSubString(strB,TempSc30[count], 0, '@'); // strB == "168"
AfxExtractSubString(strC, TempSc30[count], 0, '@'); // strC == "0"
AfxExtractSubString(strD, TempSc30[count], 0, '@'); // strD == "1"
AfxExtractSubString(strE, TempSc30[count], 0, '@'); // strD == "1"
}
이건 직관적이다 딱보면 딱이다. 걍 쓰자
댓글