과거
AfxMessageBox(“가나다”);
는 유니코드 환경하에서 컴파일 하면
error C2665: ‘AfxMessageBox’ : none of the 2 overloads could convert all the argument types
‘int AfxMessageBox(LPCTSTR,UINT,UINT)’
‘int AfxMessageBox(UINT,UINT,UINT)’
따라서..
AfxMessageBox(L“가나다”);
또는
AfxMessageBox(_T(“가나다”));
식으로 바꿔주면 문제 해결.
또는 세팅에서 유니코드 옵션을 꺼버린다.







댓글 남기기