CString LPSTR WCHAR*
CString to LPSTR CollapseCString str = _T("My String"); int nLen = str.GetLength(); LPTSTR lpszBuf = str.GetBuffer(nLen); // here do something with lpszBuf........... str.ReleaseBuffer();LPTSTR to LPWSTR Collapseint nLen = MultiByteToWideChar(CP_ACP, 0, lptStr, -1, NULL, NULL); MultiByteToWideChar(CP_ACP, 0, lptStr, -1, lpwStr, nLen); CString to WCHAR* CollapseCString str = "A string here" ; LPW..
2009. 8. 30.