반응형 CString2 [C++/MFC] 형 변환, CString to int Cpp File 1. CString to int CString str; int num = 100; str.format(_T("%d"), num); 2. int to CString CString str = _T("1234"); int num; num = _ttoi(str); 2023. 7. 17. [C++/MFC] 문자열 변환, CString to char Cpp File CString str = "CString to char"; int length = str.GetLength(); char* pChr = new char[length]; strcpy(pChr, str.GetBuffer(0)); delete[] pChr; pChr = NULL; 2022. 10. 17. 이전 1 다음 반응형