Processing CStringW one char at a time
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
How would i iterate over CStringW characters? I need the equivalent of this:
void func(wchar_t *Stuff)
{
int len = wcslen(Stuff);
for(int i = 0; i < len; i++)
{
std::wcout << Stuff[i] << std::endl;
}
}Thanks.
011011010110000101100011011010000110100101101110 0110010101110011
-
How would i iterate over CStringW characters? I need the equivalent of this:
void func(wchar_t *Stuff)
{
int len = wcslen(Stuff);
for(int i = 0; i < len; i++)
{
std::wcout << Stuff[i] << std::endl;
}
}Thanks.
011011010110000101100011011010000110100101101110 0110010101110011
-
Alright, solved it.
for(int i = 0; ; i++)
{
wchar_t ch = pString.GetAt(i);
if(ch == 0) break;
}011011010110000101100011011010000110100101101110 0110010101110011