1>  StdAfx.cpp
1>  _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
1>  S180006CAPIExampleComEn.cpp
1>  _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
1>e:\reader\reader\reader\s180006capiexamplecomen.cpp(74): error C3861: “Enable3dControlsStatic”: 找不到标识符
1>  reader.cpp
1>  _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
1>  正在生成代码...
1>
1>生成失败。什么原因?

解决方案 »

  1.   

    Enable3dControlsStatic 是在哪个头文件里定义的?
    s180006capiexamplecomen.cpp 里有没有包含这个头文件?
      

  2.   


    我没写s180006capiexamplecomen.cpp这个源程序啊
      

  3.   


    #ifdef _AFXDLL
    Enable3dControls(); // Call this when using MFC in a shared DLL
    #else
    Enable3dControlsStatic(); // Call this when linking to MFC statically
    #endif
    配置问题:工程菜单 -> 属性 -> general 
    里找 Use of MFC ,将它的值选为 using MFC in a shared DLL