MSDN > フォーラム ホーム > Visual C++ IDE > Error C2065 in MFC Applications
質問する質問する
 

質問Error C2065 in MFC Applications

  • 2009年11月6日 22:36Pharrox ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     

    Hello.

    I am currently using Visual Studio 2008 Pro.  I had been using Visual Studio 2010 beta 1 for a while, but was having some conflicts with some of the libraries I needed.  I moved my project back to 2008, but when I try to compile I get the following errors.  Creating a new default MFC application produces the same result

     1>------ Build started: Project: well2, Configuration: Debug Win32 ------
    1>Compiling...
    1>stdafx.cpp
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(3746) : error C2065: 'AFX_IDW_PANE_FIRST' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(3797) : error C2065: 'CBRS_ALIGN_TOP' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(278) : error C2065: 'CBRS_BOTTOM' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(279) : error C2065: 'AFX_IDW_STATUS_BAR' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(281) : error C2065: 'CBRS_BOTTOM' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(282) : error C2065: 'AFX_IDW_STATUS_BAR' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(371) : error C2065: 'CBRS_TOP' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(372) : error C2065: 'AFX_IDW_TOOLBAR' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(374) : error C2065: 'CBRS_ALIGN_TOP' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(376) : error C2065: 'AFX_IDW_TOOLBAR' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(540) : error C2065: 'CBRS_TOP' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(541) : error C2065: 'AFX_IDW_REBAR' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(602) : error C2065: 'AFX_IDW_PANE_FIRST' : undeclared identifier
    1>e:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxext.h(608) : error C2065: 'AFX_IDW_PANE_FIRST' : undeclared identifier
    1>Build log was saved at "file://d:\Documents\Visual Studio 2008\Projects\well2\well2\Debug\BuildLog.htm"
    1>well2 - 14 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

     

    I tried resetting the settings and uninstalling everything then just reinstalling VS2008, but I still get the same errors.  I also had quite a few Microsoft SDKs on my system prior to uninstalling.  I'm pretty sure I got rid of them all but I'm not absolutely positive and was wondering if there was some way to verify (they were in several locations on different drives) or if I had to make any other changes so that VS knows they are no longer installed.

    I'm pretty sure it has to be something with one of the older SDKs or changes made by VS2010, but I've removed and reset everything I can think of and it doesn't seem to make a difference.  Before uninstalling 2010 I set 2008's include directory to use the include directory from 2010.  It compiled fine with that, but of course I then ran into the same problems with compatibility that I was having with 2010.

     

    Sorry for what is probably a pretty stupid question, but thanks in advance for your help.

    • 移動Nancy ShaoMSFT2009年11月9日 5:19To get better support (From:Visual C++ Language)
    •  

すべての返信