error C2664: cannot convert argument 1 from 'CString' to 'const char *'
int nLen = str.GetLength();
char *ch = new char[nLen];
WideCharToMultiByte(CP_ACP, 0, str, -1, ch, nLen + 1, NULL, NULL);
--- << ch 사용 >> ---
delete[] ch;
'할거리 > VC' 카테고리의 다른 글
C2665: 'AfxMessageBox' : none of the 2 overloads could convert all the argument types (0) | 2015.07.20 |
---|---|
VC : Find Results not displaying Results (0) | 2015.06.24 |
OpenCV warning C4819 current code page (949) (0) | 2015.06.24 |
OpenCV 3.0 extra module C2589: '(': token not valid to the right error (0) | 2015.06.10 |
CFileDialog cannot convert const char [22] to LPCTSTR (0) | 2015.05.22 |