// CString → Char char* StringToChar(CString str) { char *szStr = NULL; #if defined(UNICODE) || defined(_UNICODE) int nLen = str.GetLength() + 1; TCHAR *tszTemp = NULL; tszTemp = new TCHAR[nLen]; memset(tszTemp, 0x00, nLen*sizeof(TCHAR)); _tcscpy(tszTemp, str); // Get size (실제사용되는바이트사이즈) int nSize = WideCharToMultiByte(CP_ACP, 0, tszTemp, -1, NULL, NULL, NULL, NULL); szStr = new char[nSize]; mem..