之前自己的vc 6.0 文件在vs2008 软件里面老是出现一个错误,错误指向
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL <------错误指向这里
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
后来才知道是版本的问题。只要再包括一个版本就可以了。
#if _MSC_VER <=1200 // MFC 6.0 or earlier ----------增加内容
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
#endif ---------------增加内容