본문 바로가기

Language/C++

CString에서 const char* 형식으로 형변환

CString strTest = _T("test");

const char* cTest = (char*)(LPCTSTR)strTest