AfxMessageBox();

과거
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(“가나다”));

식으로 바꿔주면 문제 해결.
또는 세팅에서 유니코드 옵션을 꺼버린다.

3 thoughts on “AfxMessageBox();”

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.