1. CString to const char*

 

CString strText = _T("myStirng");
const char* ccText;
ccText = (CStringA)strText;

 

 

 

2. const char* to CString

const char* ccText = "myString";
CString strText;
ccText = (CString)strText;

 

 

 

 

반응형

+ Recent posts