How to analyse a string type of CString?
-
HI~~ i have a Q about analyse a string type of CString. the string was <伯 YはY><夷 YいY><叔 YしゆY><斉 YせいY><餓 OウO K哀K>于<首 YしゆY><陽 YやうY>之<下 YもとY O二O K亜K M。M> i want get the CStringList list; list[0]=伯; list[1]=夷; list[2]=叔; ..... code like this: while(!ado.pRtr->adoEOF) { var=ado.pRtr->GetCollect("SHOMON_BUN"); m_Text=(LPCSTR)_bstr_t(var); int len=m_Text.GetLength(); while(!len==0) { //i don't know how can i do } list.AddTail(m_Text); ado.pRtr->MoveNext(); } thanks in advance very much~~!:confused::confused::confused::confused: nothing
-
HI~~ i have a Q about analyse a string type of CString. the string was <伯 YはY><夷 YいY><叔 YしゆY><斉 YせいY><餓 OウO K哀K>于<首 YしゆY><陽 YやうY>之<下 YもとY O二O K亜K M。M> i want get the CStringList list; list[0]=伯; list[1]=夷; list[2]=叔; ..... code like this: while(!ado.pRtr->adoEOF) { var=ado.pRtr->GetCollect("SHOMON_BUN"); m_Text=(LPCSTR)_bstr_t(var); int len=m_Text.GetLength(); while(!len==0) { //i don't know how can i do } list.AddTail(m_Text); ado.pRtr->MoveNext(); } thanks in advance very much~~!:confused::confused::confused::confused: nothing
ebinaini wrote: i have a Q about analyse a string type of CString. the string was... What is it that you are wanting to analyze? ebinaini wrote: while(!len==0) What are you trying to check for here?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb