阿杰 发表于 2010-12-18 23:41:20

: error C2039: “Enable3dControls”: 不是“CWinApp”的成员

程序中并没有直接调用这个函数,在debug调试的时候没有任何问题,在release的时候忽然出现,
原因是这个方法在高版本中已经不在支持使用,
解决方法是注释掉afxwin2.inl中的下面两句,
//_AFXWIN_INLINE BOOL CWinApp::Enable3dControls()
// { return TRUE; }
如果是在静态库中使用MFC还需注释点下面两句
//_AFXWIN_INLINE BOOL CWinApp::Enable3dControlsStatic()
// { return TRUE; }
页: [1]
查看完整版本: : error C2039: “Enable3dControls”: 不是“CWinApp”的成员