//username is a stringc wchar_t toAdd[255]; _snwprintf(toAdd, 255, L"%s has just made an account.", username.c_str()); pS->logBox->addItem(toAdd);