[操作疑難] [C++] GetComputerName 唔work

  1.     // write computer name
  2.     LPTSTR lpszSystemInfo;     // pointer to system information string
  3.     DWORD cchBuff = 256;       // size of computer or user name
  4.     TCHAR tchBuffer2[256];
  5.            
  6.     lpszSystemInfo = tchBuffer2;
  7.     GetComputerName(lpszSystemInfo, &cchBuff);
  8.     m_LogFile << lpszSystemInfo << endl;
複製代碼
Compiler: VS2013 Community
好似係Unicode問題
佢出左如
003CE03C
但debugger看到是如MY-PC
以前VS2008 + XP 是work 的...
THX