본문 바로가기
MFC

Error C2039: 'Enable3dControls' : is not a member of 'CWinApp'

by leo21c 2016. 3. 10.
SMALL

Visual Studio 2005를 사용하고 있는데 Debug 모드에서는 정상적으로 빌드가 되는데

Release 모드로 하면 빌드 에러가 발생하는 문제입니다.

에러 메시지는 아래와 같습니다.

Error C2039: 'Enable3dControls' : is not a member of 'CWinApp'

구글로 검색을 해 본 결과 아래와 bug라고 합니다.

MSDN Managed Newsgroups에서 관련 내용은 bug이기 때문에 삭제를 하면 된다고 합니다.

Yes, this is due to a bug. You should be able to comment out the Enable3dControl text lines in afxwin2.inl to get rid of the problem.
They are no longer used.
Thank you for using MSDN Managed Newsgroups! 
Susan Huffaker [MSFT]
Microsoft DS Communities Team

This posting is provided "AS IS" with no warranties, and confers no rights. 
Please reply to newsgroups only.

아래와 같이 관련 내용을 주석 처리를 한후에 에러가 발생하지 않습니다. 
1072 line

//_AFXWIN_INLINE BOOL CWinApp::Enable3dControls()
// { return TRUE; }



LIST