setlocale(LC_ALL, "chs"); //列印中文須先設定本地語言為中文 LPCTSTR strValue = _T("變量的值"); _tprintf(_T("要列印的變量值:%s"),strValue);