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

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

“AfxMessageBox();” 글의 댓글 3개

  1. C++말고 C#을 하세요!!

    좋아요

  2. 책은 샀어요??

    좋아요

    1. 주문 넣었는데, 아직 안왔어요. 어제쯤 왔어야하는데.. 오늘 오겠죠 뭐.

      좋아요

이쁜감자님에게 덧글 달기 응답 취소