TCHAR1 C++ 문자열 변환 TCHAR<->CString char->TCHAR CString->char* TCHAR --> CString CStirng sSring; TCHAR sTString = _T("가나다"); sString.Format(_T(%s), sTString); CString --> TCHAR TCHAR * des = new TCHAR[sString.GetLength() + 1]; // 1은 NULL을 위한 여유공간 _tcscpy(des, NowSaving.GetBuffer(0)); String --> UTF - 8 char buffer[20]; WCHAR Unicode[20]; char UTF8code[20]; int nUnicodeSize = MultiByteToWideChar(CP_ACP, 0, lpID, strlen(lpID), Unicode, sizeof(Unicode)); int n.. 2008. 11. 26. 이전 1 다음