Hi dudes, does anyone know where is the problem this my code:
void CMyListBox::loadSources(CMyListBox::eInputMode eMode,const std::vector<wchar_t>& coll) {
wchar_t *pBuffer=new wchar_t[coll.size()];
std::copy(coll.begin(),coll.end(),pBuffer);
wchar_t zodis[20];
while (swscanf_s(pBuffer,L"%s",zodis,20))
MessageBox(zodis);
}
the imput(pBuffer) is this string "šešios žąsys su šešiais žąsiukais."
swscanf_s only keeps reading the same word "šešios" ...