That shouldn't matter anyway. Removing the '!' breaks that check anyway. We are only concerned about the last error if GetComputerName fails in which case it will return 0. You are saying the computer name does NOT display if you leave the '!' in?
Just for clarification, my computer name kept showing up even when I removed the "!" but it was "garbage". After I tried uncommenting it worked. I think it was fixed long ago when I changed wchar_t to TCHAR.
Turns out I mistakenly put my username instead of the "%s" so the problem isn't solved yet but I have made some interesting discovery. "pcName " prints out my name when I use wcout instead of cout, does that make a difference?
I read about it in google and I seem to have unicode turned on and thats why I was getting the numbers in cout. How to fix this though?