CFileDialog *d;
d = new CFileDialog(
TRUE, NULL, NULL,
OFN_ENABLESIZING | OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST,
"All Files (*.*)|*.*||" );
Error 7 error C2664: 'CFileDialog::CFileDialog(const CFileDialog &)' : cannot convert argument 5 from 'const char [22]' to 'LPCTSTR' c:\delpapp\app\howto\gerberplot\gerberplotdlg.cpp 454 1 GerberPlot
해결 :
TCHAR szFilter[] = _T("All Files (*.*)|*.*||");
d = new CFileDialog(
TRUE, NULL, NULL,
OFN_ENABLESIZING | OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST,
szFilter);
'할거리 > VC' 카테고리의 다른 글
CString to const char* (0) | 2015.08.11 |
---|---|
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 |