Need help: char array to string... string becomes garbage

Hi. I'm trying to "tokenize" a string using std::string functions, but I stored the text in a char array. When I try to convert it to a string, the string has the first character right but the rest is garbage.

I'm a noob so if you spot other things I'm doing wrong, feel free to rip me apart.

Actually upon further investigation... I'm not sure SendMessageA will be enough. The LB_GETTEXT and WM_SETTEXT messages seem to only have TCHAR versions (at least I don't see any indication that they support an ANSI version on MSDN).